summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 10:33:51 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-09 10:34:00 +0200
commit31bdc569aece7ae813caeaadada207e25ccda789 (patch)
treeefa9b1f4b95eba14234d525f31f3721b8eea7eea /package
parent71cafe792c3fd9e374e2c415699c9bce8d7e25a3 (diff)
bfin: fix some issues so that it can be used to do some basic testing with embedded-test
Diffstat (limited to 'package')
-rwxr-xr-xpackage/adktest/src/quit2
-rw-r--r--package/binutils/Makefile5
2 files changed, 6 insertions, 1 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