39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
SUBTARGET:=pmg5617ga
|
|
BOARDNAME:=PMG5617GA of EN7526G
|
|
|
|
# Prepare ECONET SDK compilation flags (extract from $(TOPDIR)/.config)
|
|
# __ZYXEL__start,
|
|
# Replace 'CONFIG_ECONETSDK_' for menuconfig only supports a single prompt problem.
|
|
PLATFORM_PREFIX=CONFIG_$(call qstrip, $(CONFIG_CUSTOM_SDK_PREFIX))_
|
|
$(foreach v, \
|
|
$(filter $(PLATFORM_PREFIX)%,$(.VARIABLES)), \
|
|
$(eval $(shell echo $v|sed "s/$(PLATFORM_PREFIX)//")=$($v)))
|
|
# __ZYXEL__end
|
|
|
|
## add econet compile flags.
|
|
ifneq ($(call qstrip, $(CONFIG_TC_RULE_MAK)),)
|
|
include $(PLATFORM_DIR)/$(call qstrip, $(CONFIG_TC_RULE_MAK))
|
|
else
|
|
include $(PLATFORM_DIR)/tc_rule.mak
|
|
endif
|
|
#export PROFILE=en7512_demo
|
|
export KERNEL_2_6_36=1
|
|
|
|
#for toolchain path
|
|
export TOOLCHAIN_DIR
|
|
|
|
#These two compile cannot defined at the same time!!
|
|
export TC_BUILD_RELEASECODE=y
|
|
#export CUSTOMER_BUILD_RELEASECODE=y
|
|
##
|
|
|
|
#ECONET SDK PATH
|
|
export ECONET_BUILD_DIR=$(KERNEL_BUILD_DIR)/econet-sdk-$(shell echo $(CONFIG_TC_SDK_VERSION))
|
|
|
|
##For kernel to include trx.h
|
|
export TC_TRX_INCLUDE_PATH=$(STAGING_DIR)/usr/include/trx
|
|
|
|
define Target/Description
|
|
Build images for PMG5617GA.
|
|
endef
|