image: add a helper variable for getting kernel/rootfs from within image Build/*...
[openwrt/staging/yousong.git] / target / linux / ramips / image / Makefile
index 0a927653261147d82fda1546ce6bc21c72f8bbef..c62974c45bbe15ba3cfe5991c45bf35eba8d67d6 100644 (file)
@@ -49,8 +49,8 @@ define Build/trx
        $(STAGING_DIR_HOST)/bin/trx \
                -o $@ \
                -m $(IMAGE_SIZE) \
-               -f $(word 1,$^) \
-               -a 4 -f $(word 2,$^)
+               -f $(IMAGE_KERNEL) \
+               -a 4 -f $(IMAGE_ROOTFS)
 endef
 
 define Build/relocate-kernel