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/arm | |
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/arm')
-rw-r--r-- | target/arm/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
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) |