1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
ZyXEL_PMG5617GA/target/linux/en75xx/pmg5617ga/target.mk
2022-11-27 10:16:14 +00:00

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