57 lines
1.3 KiB
Makefile
Executable File
57 lines
1.3 KiB
Makefile
Executable File
#
|
|
# Copyright (C) 2008-2011 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# Generated by Tina Cheng 2016.06.13
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
BOARD:=en75xx
|
|
BOARDNAME:=EN75xx EVM board
|
|
FEATURES:=squashfs usb pci
|
|
MAINTAINER:=
|
|
CFLAGS:=
|
|
SUBTARGETS:=en7512 en7521 en7516 en7528 $(filter vmg% pmg% ,$(shell find * -maxdepth 0 -type d))
|
|
|
|
ifeq ($(shell grep CONFIG_TC_SDK_7_3_245_300 $(TOPDIR)/.config | cut -d'=' -f2),y)
|
|
ARCH:=mips
|
|
LINUX_VERSION:=3.18.21
|
|
else
|
|
ifeq ($(shell grep CONFIG_TC_SDK_7_3_257_150 $(TOPDIR)/.config | cut -d'=' -f2),y)
|
|
ARCH:=mipsel
|
|
LINUX_VERSION:=3.18.21
|
|
else
|
|
ARCH:=mips
|
|
LINUX_VERSION:=2.6.36
|
|
endif
|
|
endif
|
|
|
|
include $(INCLUDE_DIR)/target.mk
|
|
|
|
#DEFAULT_PACKAGES += kmod-input-gpio-keys-polled \
|
|
# kmod-button-hotplug
|
|
|
|
KERNEL_ECNT_DIR=$(LINUX_DIR)/linux-ecnt
|
|
define Kernel/Configure
|
|
|
|
ifneq ($(strip $(CONFIG_TC_SDK_7_3_257_150)),)
|
|
# reference SDK 7.3.257.150, Project/make_kernel
|
|
echo "copy econet kernel"
|
|
chmod 775 $(LINUX_DIR)/linux-ecnt/*.sh
|
|
if [ $(strip $(TCSUPPORT_KERNEL_VERSION)) -ge 318021 ]; \
|
|
then \
|
|
cd $(KERNEL_ECNT_DIR)/ && ./cp_ecnt_kernel.sh $(LINUX_DIR); \
|
|
fi
|
|
endif
|
|
|
|
$(call Kernel/Configure/Default)
|
|
endef
|
|
|
|
define Target/Description
|
|
Build firmware image for EN75xx SoC devices.
|
|
endef
|
|
|
|
$(eval $(call BuildTarget))
|
|
|