diff options
Diffstat (limited to 'target/linux/ramips/image/Makefile')
-rw-r--r-- | target/linux/ramips/image/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index abcff03629..13934c5b06 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -111,6 +111,26 @@ define Build/wrg-header mv $@.new $@ endef +# combine kernel and rootfs into one image +# mkdlinkfw <type> <optional extra arguments to mkdlinkfw binary> + +define Build/mkdlinkfw + -$(STAGING_DIR_HOST)/bin/mkdlinkfw \ + -k $(IMAGE_KERNEL) \ + -r $(IMAGE_ROOTFS) \ + -o $@ \ + -s $(DLINK_FIRMWARE_SIZE) +endef + +define Build/mkdlinkfw-factory + -$(STAGING_DIR_HOST)/bin/mkdlinkfw \ + -m $(DLINK_ROM_ID) -f $(DLINK_FAMILY_MEMBER) \ + -F $@ \ + -o $@.new \ + -s $(DLINK_FIRMWARE_SIZE) + mv $@.new $@ +endef + # # The real magic happens inside these templates # |