ramips: unify JCG helper command definition

This patch makes the JCG helper command definition available
for every rampis target

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
master
Davide Fioravanti 6 years ago committed by Christian Lamparter
parent d95dff162a
commit 62ce6d58f2
  1. 6
      target/linux/ramips/image/Makefile
  2. 5
      target/linux/ramips/image/rt305x.mk

@ -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 += BUFFALO_TAG_PLATFORM BUFFALO_TAG_VERSION BUFFALO_TAG_MINOR
DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK DEVICE_VARS += SEAMA_SIGNATURE SEAMA_MTDBLOCK
DEVICE_VARS += SERCOMM_HWID SERCOMM_HWVER SERCOMM_SWVER DEVICE_VARS += SERCOMM_HWID SERCOMM_HWVER SERCOMM_SWVER
DEVICE_VARS += JCG_MAXSIZE
loadaddr-y := 0x80000000 loadaddr-y := 0x80000000
loadaddr-$(CONFIG_TARGET_ramips_rt288x) := 0x88000000 loadaddr-$(CONFIG_TARGET_ramips_rt288x) := 0x88000000
@ -46,6 +47,11 @@ define Device/seama
SEAMA_SIGNATURE := SEAMA_SIGNATURE :=
endef 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 define Build/patch-dtb
$(call Image/BuildDTB,../dts/$(DTS).dts,$@.dtb) $(call Image/BuildDTB,../dts/$(DTS).dts,$@.dtb)
$(STAGING_DIR_HOST)/bin/patch-dtb $@ $@.dtb $(STAGING_DIR_HOST)/bin/patch-dtb $@ $@.dtb

@ -21,11 +21,6 @@ define Build/hilink-header
mv $@.new $@ mv $@.new $@
endef endef
define Build/jcg-header
$(STAGING_DIR_HOST)/bin/jcgimage -v $(1) -u $@ -o $@.new
mv $@.new $@
endef
define Device/3g150b define Device/3g150b
DTS := 3G150B DTS := 3G150B

Loading…
Cancel
Save