summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-15 08:28:29 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-15 08:28:29 +0100
commit3b3017702b1ef100c6ccf214cf3117bf5a069e4d (patch)
tree788d6bbb5c53eef3b5b640b582e6349dd9b32aee /target
parente106576e5f1e68c7796b172c303cd34df2939af1 (diff)
BCM28XX uses mkknlimg which need GNU tr, check for it otherwise compile coreutils on host
Diffstat (limited to 'target')
-rw-r--r--target/arm/Makefile9
-rw-r--r--target/config/Config.in.tools9
2 files changed, 11 insertions, 7 deletions
diff --git a/target/arm/Makefile b/target/arm/Makefile
index 3bc254ca6..571f3a4a7 100644
--- a/target/arm/Makefile
+++ b/target/arm/Makefile
@@ -116,15 +116,10 @@ endif
kernel-strip:
@cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
-ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
- @echo adding DT trailer to kernel $(MAKE_TRACE)
- -rm $(BUILD_DIR)/$(TARGET_KERNEL)
- $(ADK_TOPDIR)/scripts/mkknlimg --dtok $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE)
-endif
-ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2),y)
+ifeq ($(ADK_TARGET_BOARD_BCM28XX),y)
@echo adding DT trailer to kernel $(MAKE_TRACE)
-rm $(BUILD_DIR)/$(TARGET_KERNEL)
- $(ADK_TOPDIR)/scripts/mkknlimg --dtok $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE)
+ PATH='$(HOST_PATH)' $(ADK_TOPDIR)/scripts/mkknlimg --dtok $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE)
endif
kernel-install: kernel-strip
diff --git a/target/config/Config.in.tools b/target/config/Config.in.tools
index d8bec818d..4c0830634 100644
--- a/target/config/Config.in.tools
+++ b/target/config/Config.in.tools
@@ -170,6 +170,15 @@ config ADK_HOST_BUILD_QEMU
bool
default n
+config ADK_HOST_NEED_COREUTILS
+ bool
+ default y if ADK_TARGET_BOARD_BCM28XX
+ default n
+
+config ADK_HOST_BUILD_COREUTILS
+ bool
+ default n
+
# optional, must be used from OpenADK
config ADK_HOST_NEED_MTD_UTILS
bool