image: add a helper variable for getting kernel/rootfs from within image Build/* templates
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
@@ -26,7 +26,7 @@ define Build/trx-serial
|
||||
$(STAGING_DIR_HOST)/bin/trx \
|
||||
-o $@.new \
|
||||
-m 33554432 \
|
||||
-f $(word 1,$^) -a 1024 \
|
||||
-f $(IMAGE_KERNEL) -a 1024 \
|
||||
-f $@ -a 0x10000 -A $(KDIR)/fs_mark
|
||||
mv $@.new $@
|
||||
endef
|
||||
@@ -39,7 +39,7 @@ define Build/trx-nand
|
||||
$(STAGING_DIR_HOST)/bin/trx \
|
||||
-o $@.new \
|
||||
-m 33554432 \
|
||||
-f $(word 1,$^) -a 0x20000 -b 0x400000 \
|
||||
-f $(IMAGE_KERNEL) -a 0x20000 -b 0x400000 \
|
||||
-f $@ \
|
||||
-A $(KDIR)/ubi_mark -a 0x20000
|
||||
mv $@.new $@
|
||||
@@ -57,7 +57,7 @@ define Build/seama-nand
|
||||
entity $@.entity \
|
||||
-m "dev=/dev/mtdblock/7" \
|
||||
-m "type=firmware" \
|
||||
-f $(word 1,$^) \
|
||||
-f $(IMAGE_KERNEL) \
|
||||
-b 0x400000 \
|
||||
-f $@ \
|
||||
-f $(KDIR)/ubi_mark
|
||||
|
||||
Reference in New Issue
Block a user