diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-12-08 19:07:22 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-12-08 19:07:22 +0100 |
commit | 6f2c1e1ed1d9ac59e8dda23d151d0085888498e8 (patch) | |
tree | 0498c98bcedf2a9f97fb75f6869acde02ee42f79 /mk | |
parent | 18d3d19d929699d3f27c414090e86ed16669dc07 (diff) |
add support for microblaze architecture, tested with qemu-system-microblaze{,el}
Diffstat (limited to 'mk')
-rw-r--r-- | mk/kernel-build.mk | 4 | ||||
-rw-r--r-- | mk/vars.mk | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/mk/kernel-build.mk b/mk/kernel-build.mk index 3f055e255..59a68eb88 100644 --- a/mk/kernel-build.mk +++ b/mk/kernel-build.mk @@ -7,6 +7,10 @@ include ${TOPDIR}/mk/kernel-vars.mk KERNEL_FILE:=$(ADK_TARGET_KERNEL) KERNEL_TARGET:=$(ADK_TARGET_KERNEL) +ifeq ($(ADK_TARGET_KERNEL_LINUXBIN),y) +KERNEL_FILE:=vmlinux +KERNEL_TARGET:=$(ADK_TARGET_KERNEL) +endif ifeq ($(ADK_TARGET_KERNEL_ZIMAGE),y) KERNEL_FILE:=vmlinux KERNEL_TARGET:=$(ADK_TARGET_KERNEL) diff --git a/mk/vars.mk b/mk/vars.mk index 50e02a204..9f4f8f0b9 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -75,8 +75,13 @@ TARGET_CXX:= ${TARGET_COMPILER_PREFIX}g++ TARGET_LD:= ${TARGET_COMPILER_PREFIX}ld TARGET_CPPFLAGS:= +ifeq ($(ADK_LINUX_MICROBLAZE),y) +TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(ADK_TARGET_ABI_CFLAGS) +TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(TARGET_OPTIMIZATION) +else TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(ADK_TARGET_ABI_CFLAGS) TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(TARGET_OPTIMIZATION) +endif TARGET_CXXFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \ -Wl,-O2 -Wl,-rpath -Wl,/usr/lib \ |