diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-09 10:33:51 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-09 10:34:00 +0200 |
commit | 31bdc569aece7ae813caeaadada207e25ccda789 (patch) | |
tree | efa9b1f4b95eba14234d525f31f3721b8eea7eea | |
parent | 71cafe792c3fd9e374e2c415699c9bce8d7e25a3 (diff) |
bfin: fix some issues so that it can be used to do some basic testing with embedded-test
-rwxr-xr-x | package/adktest/src/quit | 2 | ||||
-rw-r--r-- | package/binutils/Makefile | 5 | ||||
-rw-r--r-- | target/config/Config.in | 1 | ||||
-rw-r--r-- | target/config/Config.in.binfmt | 2 | ||||
-rw-r--r-- | target/config/Config.in.binutils | 2 |
5 files changed, 10 insertions, 2 deletions
diff --git a/package/adktest/src/quit b/package/adktest/src/quit index 88a22f3d2..71881202a 100755 --- a/package/adktest/src/quit +++ b/package/adktest/src/quit @@ -1,7 +1,7 @@ #!/bin/sh arch=$(uname -m) case $arch in - arc|m68k|metag|s390x|sh4eb) + arc|blackfin|m68k|metag|s390x|sh4eb) poweroff ;; *) diff --git a/package/binutils/Makefile b/package/binutils/Makefile index e7b2f965b..89c5a36ee 100644 --- a/package/binutils/Makefile +++ b/package/binutils/Makefile @@ -22,6 +22,11 @@ include ${ADK_TOPDIR}/mk/package.mk $(eval $(call PKG_template,BINUTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) $(eval $(call PKG_template,LIBBFD,libbfd,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_LIBBFD},${PKGSD_LIBBFD},${PKGSC_LIBBFD},${PKG_OPTS})) +ifeq ($(ADK_TARGET_ARCH_BFIN),y) +TARGET_CFLAGS:= $(subst Os,O1,$(TARGET_CFLAGS)) +TARGET_CXXFLAGS:= $(subst Os,O1,$(TARGET_CFLAGS)) +endif + TARGET_CFLAGS+= -fPIC CONFIGURE_ENV+= ac_cv_prog_MAKEINFO=missing diff --git a/target/config/Config.in b/target/config/Config.in index 661077207..ebe56d91b 100644 --- a/target/config/Config.in +++ b/target/config/Config.in @@ -16,6 +16,7 @@ config ADK_TARGET_UCLINUX config ADK_TARGET_SIM bool + select ADK_TOOLCHAIN_WITH_GDB config ADK_TARGET_QEMU bool diff --git a/target/config/Config.in.binfmt b/target/config/Config.in.binfmt index 69da78a44..13e28f6b5 100644 --- a/target/config/Config.in.binfmt +++ b/target/config/Config.in.binfmt @@ -54,6 +54,6 @@ endchoice config ADK_TARGET_BINFMT string depends on ADK_TARGET_ARCH_BFIN - default "bflt" if ADK_TARGET_BINFMT_FLAT + default "flat" if ADK_TARGET_BINFMT_FLAT default "fdpic" if ADK_TARGET_BINFMT_FDPIC diff --git a/target/config/Config.in.binutils b/target/config/Config.in.binutils index 5e16fadbf..6f7b49a44 100644 --- a/target/config/Config.in.binutils +++ b/target/config/Config.in.binutils @@ -7,6 +7,7 @@ default ADK_TOOLCHAIN_BINUTILS_ARC if ADK_TARGET_ARCH_ARC default ADK_TOOLCHAIN_BINUTILS_2_20_1 if ADK_TARGET_ARCH_AVR32 default ADK_TOOLCHAIN_BINUTILS_2_24 if ADK_TARGET_ARCH_NDS32 default ADK_TOOLCHAIN_BINUTILS_2_26_1 if ADK_TARGET_CPU_CRIS_CRISV10 +default ADK_TOOLCHAIN_BINUTILS_2_26_1 if ADK_TARGET_ARCH_BFIN default ADK_TOOLCHAIN_BINUTILS_2_27 if ADK_TARGET_ARCH_C6X default ADK_TOOLCHAIN_BINUTILS_2_27 if ADK_TARGET_ARCH_FRV default ADK_TOOLCHAIN_BINUTILS_2_27 if ADK_TARGET_ARCH_H8300 @@ -44,6 +45,7 @@ config ADK_TOOLCHAIN_BINUTILS_2_25_1 bool "2.25.1" depends on !ADK_TARGET_ARCH_ARC depends on !ADK_TARGET_ARCH_AVR32 + depends on !ADK_TARGET_ARCH_BFIN depends on !ADK_TARGET_ARCH_FRV depends on !ADK_TARGET_ARCH_H8300 depends on !ADK_TARGET_ARCH_MOXIE |