ramips: unify JCG helper command definition
authorDavide Fioravanti <pantanastyle@gmail.com>
Mon, 20 May 2019 03:15:24 +0000 (05:15 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 31 May 2019 08:30:03 +0000 (10:30 +0200)
This patch makes the JCG helper command definition available
for every rampis target

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
target/linux/ramips/image/Makefile
target/linux/ramips/image/rt305x.mk

index 145dbf4ec53cc7d04f014f635e07911bc6dfed19..0a32859bec34aba6f5d055efe521d37640701d60 100644 (file)
@@ -11,6 +11,7 @@ DEVICE_VARS += DTS IMAGE_SIZE NETGEAR_BOARD_ID NETGEAR_HW_ID
 DEVICE_VARS += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR
 DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
 DEVICE_VARS += SERCOMM_HWID SERCOMM_HWVER SERCOMM_SWVER
+DEVICE_VARS += JCG_MAXSIZE
 
 loadaddr-y := 0x80000000
 loadaddr-$(CONFIG_TARGET_ramips_rt288x) := 0x88000000
@@ -46,6 +47,11 @@ define Device/seama
   SEAMA_SIGNATURE :=
 endef
 
+define Build/jcg-header
+       $(STAGING_DIR_HOST)/bin/jcgimage -v $(1) $(if $(JCG_MAXSIZE), -m $(JCG_MAXSIZE),) -u $@ -o $@.new
+       mv $@.new $@
+endef
+
 define Build/patch-dtb
        $(call Image/BuildDTB,../dts/$(DTS).dts,$@.dtb)
        $(STAGING_DIR_HOST)/bin/patch-dtb $@ $@.dtb
index c67384f0711c7d784a2eb99299bcf7ba98f309a9..adda8ec67e34634732c813da12ab2641b9188a87 100644 (file)
@@ -21,11 +21,6 @@ define Build/hilink-header
        mv $@.new $@
 endef
 
-define Build/jcg-header
-       $(STAGING_DIR_HOST)/bin/jcgimage -v $(1) -u $@ -o $@.new
-       mv $@.new $@
-endef
-
 
 define Device/3g150b
   DTS := 3G150B