Parcourir la source

brcm47xx: image: make TRX steps work with rootfs passed as $@

Signed-off-by: Rafał Miłecki <[email protected]>
Rafał Miłecki il y a 9 ans
Parent
commit
027b2c5b83
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      target/linux/brcm47xx/image/Makefile

+ 4 - 2
target/linux/brcm47xx/image/Makefile

@@ -51,10 +51,11 @@ endef
 define Build/trx-with-loader
 	$(STAGING_DIR_HOST)/bin/trx \
 		-m 33554432 \
-		-o $@ \
+		-o $@.new \
 		-f $(KDIR)/loader.gz \
 		-f $(IMAGE_KERNEL) \
 		$(call trxalign/$(FILESYSTEM),$(FILESYSTEM))
+	mv [email protected] $@
 endef
 
 define Build/trx-v2-with-loader
@@ -71,9 +72,10 @@ endef
 define Build/trx-without-loader
 	$(STAGING_DIR_HOST)/bin/trx \
 		-m 33554432 \
-		-o $@ \
+		-o $@.new \
 		-f $(IMAGE_KERNEL) \
 		$(call trxalign/$(FILESYSTEM),$(FILESYSTEM))
+	mv [email protected] $@
 endef
 
 define Build/asus-trx