Skip to content

Commit

Permalink
build: fix regression in append-dtb fix
Browse files Browse the repository at this point in the history
Strip whitespace from DTS directory
Put the dependency earlier in the chain to avoid make errors

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Nov 3, 2017
1 parent eb58eba commit fae5f02
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/image.mk
Original file line number Diff line number Diff line change
Expand Up @@ -438,17 +438,16 @@ endef
ifndef IB
define Device/Build/dtb
$(KDIR)/image-$(1).dtb: FORCE
$(call Image/BuildDTB,$(2)/$(1).dts,$$@)
$(call Image/BuildDTB,$(strip $(2))/$(1).dts,$$@)

$(3): $(KDIR)/image-$(1).dtb
image_prepare: $(KDIR)/image-$(1).dtb
endef
endif

define Device/Build/kernel
$$(eval $$(foreach dts,$$(DEVICE_DTS), \
$$(call Device/Build/dtb,$$(dts), \
$$(if $$(DEVICE_DTS_DIR),$$(DEVICE_DTS_DIR),$$(DTS_DIR)),\
$$(KDIR_KERNEL_IMAGE) $(KDIR)/$$(KERNEL_INITRAMFS_NAME) \
$$(if $$(DEVICE_DTS_DIR),$$(DEVICE_DTS_DIR),$$(DTS_DIR)) \
) \
))

Expand Down

0 comments on commit fae5f02

Please sign in to comment.