mirror of
https://github.com/openwrt/openwrt.git
synced 2026-12-06 06:25:41 +04:00
uboot-mediatek: compress BL31 in the build directory
With FIP_COMPRESS set, the fip step compresses the BL31 image next to the original in the staging directory. All U-Boot variants for the same SoC, boot device and DRAM type write the same file. Write the compressed BL31 to the build directory of the variant instead. The fip does not change. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
1 parent
728fb15aff
commit
df6a1c978b
1 file changed
+2
-2
@@ -1506,11 +1506,11 @@ FIP_BL31=$(STAGING_DIR_IMAGE)/$(if $(BL2_SOC),$(BL2_SOC),$(BUILD_SUBTARGET))-$(B
|
||||
|
||||
define Build/fip-image
|
||||
$(if $(FIP_COMPRESS),\
|
||||
xz -f -e -k -9 -C crc32 $(FIP_BL31) ;\
|
||||
xz -e -9 -C crc32 -c $(FIP_BL31) > $(PKG_BUILD_DIR)/bl31.bin.xz ;\
|
||||
xz -f -e -k -9 -C crc32 $(PKG_BUILD_DIR)/u-boot.bin \
|
||||
)
|
||||
$(STAGING_DIR_HOST)/bin/fiptool create \
|
||||
--soc-fw $(FIP_BL31)$(if $(FIP_COMPRESS),.xz) \
|
||||
--soc-fw $(if $(FIP_COMPRESS),$(PKG_BUILD_DIR)/bl31.bin.xz,$(FIP_BL31)) \
|
||||
--nt-fw $(PKG_BUILD_DIR)/u-boot.bin$(if $(FIP_COMPRESS),.xz) \
|
||||
$(PKG_BUILD_DIR)/u-boot.fip
|
||||
endef
|
||||
|
||||
Reference in new issue
Block a user