diff options
author | Waldemar Brodkorb <wbrodkorb@conet.de> | 2015-02-04 10:09:24 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbrodkorb@conet.de> | 2015-02-04 10:09:24 +0100 |
commit | 7c71cc32dfe3162e5df644f46fc5405128aad885 (patch) | |
tree | 71fbc8bcdc9de31b90cdf4f44512deb1eec750ea /target | |
parent | 62e251378c7e36a1cb3a5eaa56db5cd592710015 (diff) |
add DT trailer to kernel for raspberry pi with dt
The Kernel need a trailer to be recognized as a device-tree
kernel. The overlay dir is called /boot/overlays.
Now my driver works fine.
Diffstat (limited to 'target')
-rw-r--r-- | target/Makefile | 2 | ||||
-rw-r--r-- | target/arm/Makefile | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/target/Makefile b/target/Makefile index 7041ed347..d015d6757 100644 --- a/target/Makefile +++ b/target/Makefile @@ -127,4 +127,4 @@ clean: $(ADK_TARGET_ARCH)-clean $(ADK_TARGET_ARCH)-imageclean %-imageinstall: %-imageprepare $(TRACE) target/$(patsubst %-imageinstall,%,$@)-imageinstall $(MAKE) -C $(patsubst %-imageinstall,%,$@) imageinstall - @echo 'Login as user root with password "$(ADK_RUNTIME_PASSWORD)" via ssh or console.' + @echo "Login as user root via ssh or console." diff --git a/target/arm/Makefile b/target/arm/Makefile index 560ee1e98..2bcd73bc8 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -94,7 +94,14 @@ targethelp: endif kernel-strip: +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y) +ifeq ($(ADK_KERNEL_BCM2708_DT),y) + @echo adding DT trailer to kernel $(MAKE_TRACE) + $(ADK_TOPDIR)/scripts/mkknlimg --dtok $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE) +endif +else @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) +endif kernel-install: kernel-strip @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL) |