[Buildroot] [PATCH v2] Add support for Flattened Image Trees
Thomas De Schampheleire
patrickdepinguin at gmail.com
Thu Sep 18 16:21:21 UTC 2014
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?
>
>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...
Best regards,
Thomas
More information about the buildroot
mailing list