mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
linux: fix appended dtb handling of pre/post v3.8-rc1
The $(wildcard ) doesn't work for LINUX_APPEND_DTB, because the .dtb doesn't exist yet at that point. Also factor the common part out. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
b0e63e5b9a
commit
a1cfe20df6
@ -201,23 +201,20 @@ endef
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_LINUX_KERNEL_APPENDED_DTB),y)
|
||||||
|
# dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1
|
||||||
|
define LINUX_APPEND_DTB
|
||||||
|
if [ -e $(KERNEL_ARCH_PATH)/boot/$(KERNEL_DTS_NAME).dtb ]; then \
|
||||||
|
cat $(KERNEL_ARCH_PATH)/boot/$(KERNEL_DTS_NAME).dtb; \
|
||||||
|
else \
|
||||||
|
cat $(KERNEL_ARCH_PATH)/boot/dts/$(KERNEL_DTS_NAME).dtb; \
|
||||||
|
fi >> $(KERNEL_ARCH_PATH)/boot/zImage
|
||||||
|
endef
|
||||||
ifeq ($(BR2_LINUX_KERNEL_APPENDED_UIMAGE),y)
|
ifeq ($(BR2_LINUX_KERNEL_APPENDED_UIMAGE),y)
|
||||||
define LINUX_APPEND_DTB
|
# We need to generate the uImage here after that so that the uImage is
|
||||||
# dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1
|
# generated with the right image size.
|
||||||
cat $(wildcard $(addprefix $(KERNEL_ARCH_PATH)/boot/,\
|
LINUX_APPEND_DTB += $(sep)$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) uImage
|
||||||
$(KERNEL_DTS_NAME).dtb dts/$(KERNEL_DTS_NAME).dtb)) \
|
endif
|
||||||
>> $(KERNEL_ARCH_PATH)/boot/zImage
|
|
||||||
# We need to generate the uImage here after that so that the uImage is
|
|
||||||
# generated with the right image size.
|
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) uImage
|
|
||||||
endef
|
|
||||||
else ifeq ($(BR2_LINUX_KERNEL_APPENDED_ZIMAGE),y)
|
|
||||||
define LINUX_APPEND_DTB
|
|
||||||
# dtbs moved from arch/$ARCH/boot to arch/$ARCH/boot/dts since 3.8-rc1
|
|
||||||
cat $(wildcard $(addprefix $(KERNEL_ARCH_PATH)/boot/,\
|
|
||||||
$(KERNEL_DTS_NAME).dtb dts/$(KERNEL_DTS_NAME).dtb)) \
|
|
||||||
>> $(KERNEL_ARCH_PATH)/boot/zImage
|
|
||||||
endef
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Compilation. We make sure the kernel gets rebuilt when the
|
# Compilation. We make sure the kernel gets rebuilt when the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user