X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fimage%2FMakefile;h=13934c5b060ea5f949c4581cc2fd33bcb6f4b76f;hb=cd75d6f7b339b613abbf92091c1baf70238c5f7e;hp=f34eba79cd16b65c32d92a82b77db6830bee39d7;hpb=6b0b526a4fc11d3b1b588d5b3b789da0c66adce9;p=oweals%2Fopenwrt.git diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index f34eba79cd..13934c5b06 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -36,9 +36,10 @@ define Device/Default PROFILES = Default $$(DTS) KERNEL_DEPENDS = $$(wildcard ../dts/$$(DTS).dts) KERNEL := $(KERNEL_DTB) | uImage lzma + DEVICE_DTS_DIR := ../dts IMAGES := sysupgrade.bin IMAGE_SIZE := $(ralink_default_fw_size_8M) - SUPPORTED_DEVICES = $(1) + SUPPORTED_DEVICES := $(subst _,$(comma),$(1)) sysupgrade_bin := append-kernel | append-rootfs | pad-rootfs IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE) endef @@ -110,6 +111,26 @@ define Build/wrg-header mv $@.new $@ endef +# combine kernel and rootfs into one image +# mkdlinkfw + +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 # @@ -117,7 +138,7 @@ endef # $(2), filename of image data # $(3), output filename define MkImage - $(eval imagename=$(if $(4),$(4),MIPS OpenWrt Linux-$(LINUX_VERSION))) + $(eval imagename=$(if $(4),$(4),MIPS $(VERSION_DIST) Linux-$(LINUX_VERSION))) -mkimage -A mips -O linux -T kernel -C $(1) -a $(loadaddr-y) -e $(loadaddr-y) \ -n "$(imagename)" \ -d $(2) $(3) @@ -211,12 +232,8 @@ ifeq ($(SUBTARGET),mt7621) include mt7621.mk endif -ifeq ($(SUBTARGET),mt7628) -include mt7628.mk -endif - -ifeq ($(SUBTARGET),mt7688) -include mt7688.mk +ifeq ($(SUBTARGET),mt76x8) +include mt76x8.mk endif ifdef LEGACY_DEVICES