diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-07-30 14:19:11 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-07-31 12:25:25 +0200 |
commit | 63b525dd6b209af5554a2d053efd4b3ce6f60c9c (patch) | |
tree | b4bf688fa7ce3b9cbbad996dd0d60730eacbede9 /target/linux/brcm2708/image | |
parent | 9201e88f518dbe5246aa2f77342175805ef10cdd (diff) | |
download | upstream-63b525dd6b209af5554a2d053efd4b3ce6f60c9c.tar.gz upstream-63b525dd6b209af5554a2d053efd4b3ce6f60c9c.tar.bz2 upstream-63b525dd6b209af5554a2d053efd4b3ce6f60c9c.zip |
image: add a helper variable for getting kernel/rootfs from within image Build/* templates
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/brcm2708/image')
-rw-r--r-- | target/linux/brcm2708/image/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm2708/image/Makefile b/target/linux/brcm2708/image/Makefile index 7656211310..81a7647ec2 100644 --- a/target/linux/brcm2708/image/Makefile +++ b/target/linux/brcm2708/image/Makefile @@ -30,7 +30,7 @@ define Build/boot-img mcopy -i $@.boot $(KDIR)/fixup_cd.dat :: mcopy -i $@.boot cmdline.txt :: mcopy -i $@.boot config.txt :: - mcopy -i $@.boot $(word 1,$^) ::kernel.img + mcopy -i $@.boot $(IMAGE_KERNEL) ::kernel.img $(foreach dts,$(shell echo $(DEVICE_DTS)),mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb ::;) mmd -i $@.boot ::/overlays mcopy -i $@.boot $(DTS_DIR)/overlays/*.dtbo ::/overlays/ @@ -38,7 +38,7 @@ define Build/boot-img endef define Build/sdcard-img - ./gen_rpi_sdcard_img.sh $@ $@.boot $(word 2,$^) \ + ./gen_rpi_sdcard_img.sh $@ $@.boot $(IMAGE_ROOTFS) \ $(CONFIG_BRCM2708_SD_BOOT_PARTSIZE) $(CONFIG_TARGET_ROOTFS_PARTSIZE) $(if $(CONFIG_TARGET_IMAGES_GZIP),gzip -9n -c $@ > $(BIN_DIR)/$(notdir $@).gz) endef |