[Buildroot] [PATCH v2] Add support for Flattened Image Trees

Yegor Yefremov yegorslists at googlemail.com
Thu Sep 18 20:17:06 UTC 2014


On Thu, Sep 18, 2014 at 6:21 PM, Thomas De Schampheleire
<patrickdepinguin at gmail.com> wrote:
> Yegor Yefremov <yegorslists at googlemail.com> schreef:
>>
>>I've figured the stuff out too:
>>
>>ROOTFS_FIT_DEPENDENCIES = uboot-tools
>
> This should be host-uboot-tools, no?

Fixed

>>ifeq ($(BR2_FIT_INSTALL_TARGET),y)
>>define ROOTFS_FIT_CMD
>>        cp $(BR2_FIT_PATH) $(BINARIES_DIR) && \
>>        $(HOST_DIR)/usr/bin/mkimage -f $(BINARIES_DIR)/`basename
>>$(BR2_FIT_PATH)` $(BINARIES_DIR)/$(BR2_FIT_BLOB_NAME) && \
>>        mkdir -p $(TARGET_DIR)/boot/ && \
>>        cp $(BINARIES_DIR)/$(BR2_FIT_BLOB_NAME) $(TARGET_DIR)/boot/
>>endef
>>else
>>define ROOTFS_FIT_CMD
>>        cp $(BR2_FIT_PATH) $(BINARIES_DIR) && \
>>        $(HOST_DIR)/usr/bin/mkimage -f $(BINARIES_DIR)/`basename
>>$(BR2_FIT_PATH)` $(BINARIES_DIR)/$(BR2_FIT_BLOB_NAME)
>>endef
>>endif
>>
>>$(eval $(call ROOTFS_TARGET,fit))
>
> There's a lot of duplication here that can be avoided...

How do I define "nop" in a Makefile syntactically? What do you  mean
with "target_cmd ('true') "?

Yegor


More information about the buildroot mailing list