172 lines
6.2 KiB
Plaintext
Executable File
172 lines
6.2 KiB
Plaintext
Executable File
include Project/dir.mak
|
|
include $(TRUNK_DIR)/.profile_summary
|
|
|
|
#UNOPEN_FILE_DELETE means unopen files needed to be deleted
|
|
UNOPEN_FILE_DELETE=$(MODULES_PRIV_SRC_DIR)/auto_bench \
|
|
$(MODULES_PRIV_SRC_DIR)/en7512_pcie_verify \
|
|
$(MODULES_PRIV_SRC_DIR)/sif \
|
|
$(MODULES_PRIV_SRC_DIR)/hwnat \
|
|
$(MODULES_PRIV_SRC_DIR)/HWNAT_Emulation \
|
|
$(MODULES_PRIV_SRC_DIR)/HWNAT_Emulation_Accelerated \
|
|
$(MODULES_PRIV_SRC_DIR)/net \
|
|
$(MODULES_CRYPTO_DRIVER) \
|
|
$(MODULES_EIP93_DRIVERS) \
|
|
$(FILESYSTEM_DIR)/userfs/SLAD_TestTool \
|
|
$(FILESYSTEM_DIR)/userfs/Regression \
|
|
$(FILESYSTEM_DIR)/lib/modules/vdriver_93_k.ko \
|
|
$(MODULES_HWNAT_DIR) \
|
|
$(MODULES_RA_HWNAT_DIR) \
|
|
$(MODULES_KPROFILE_DIR) \
|
|
$(KERNEL_DIR)/drivers/usb/host/mtk_test \
|
|
$(TRUNK_DIR)/buildfs_vs_fw_table.xls \
|
|
$(TRUNK_DIR)/rootfs \
|
|
$(TRUNK_DIR)/README \
|
|
$(TRUNK_DIR)/bootrom_int \
|
|
$(TRUNK_DIR)/modules_tmp/ko/modules/2.6.22.15 \
|
|
$(MODULES_PRIV_SRC_DIR)/speedtest/speed_test_unopen.c \
|
|
$(MODULES_PRIV_SRC_DIR)/tc3162l2hp2h/SAR_VERIFY \
|
|
$(MODULES_PRIV_SRC_DIR)/tc3162l2hp2h/*_verify.c \
|
|
$(MODULES_PRIV_SRC_DIR)/tc3162l2hp2h/tc3162_udc20.c \
|
|
$(MODULES_PRIV_SRC_DIR)/tc3162l2hp2h/tc3162_udc.c \
|
|
$(MODULES_PRIV_SRC_DIR)/tcci/version.c \
|
|
$(MODULES_PRIV_SRC_DIR)/voip \
|
|
$(MODULES_PRIV_SRC_DIR)/fe_ppe_test \
|
|
$(MODULES_PRIV_SRC_DIR)/slm_verify \
|
|
$(MODULES_DIAG_TOOL) \
|
|
$(TRUNK_DIR)/bootrom_ft
|
|
|
|
ifeq ($(strip $(TCSUPPORT_CPU_RT63365) $(TCSUPPORT_CPU_RT63368) $(TCSUPPORT_CPU_MT7520) $(TCSUPPORT_CPU_MT7505) $(TCSUPPORT_CPU_MT7510)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/raeth \
|
|
$(MODULES_QDMA_DIR)
|
|
endif
|
|
|
|
ifeq ($(strip $(TCSUPPORT_BONDING)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/bonding_pcie
|
|
endif
|
|
|
|
ifeq ($(strip $(TCSUPPORT_XPON_HAL_API_MCST)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/mtk_multicast
|
|
endif
|
|
|
|
UNOPEN_FILE_DELETE += $(FILESYSTEM_DIR)/boaroot/cgi-bin/WizardOi \
|
|
$(FILESYSTEM_DIR)/boaroot/html/include \
|
|
$(BOOTROM_DIR)/ddr_cal/*.c \
|
|
$(BOOTROM_DIR)/ddr_cal_mt7505/*.c \
|
|
$(BOOTROM_DIR)/ddr_cal_en7512/*.c
|
|
|
|
|
|
ifeq ($(strip $(RELEASEHWNAT)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_RA_HWNAT_7510_DIR)
|
|
endif
|
|
|
|
#delete adsl or vdsl code for mt7520
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/epon
|
|
ifeq ($(strip $(TCSUPPORT_CPU_RT63365) $(TCSUPPORT_CPU_RT63368) $(TCSUPPORT_CPU_MT7505) $(TCSUPPORT_CPU_MT7510) $(TCSUPPORT_CPU_EN7512)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/dmt \
|
|
$(MODULES_PRIV_SRC_DIR)/mt7510_ptm \
|
|
$(MODULES_PRIV_SRC_DIR)/mtk_sar \
|
|
$(MODULES_PRIV_SRC_DIR)/tc3262
|
|
endif
|
|
|
|
#delete mt75xx sim
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/mtk_sim
|
|
ifeq ($(strip $(TCSUPPORT_CT_SIMCARD_SEPARATION)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/simcard_separation
|
|
endif
|
|
ifeq ($(strip $(TCSUPPORT_SIMCARD_GENERAL)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/simcard_separation_general
|
|
endif
|
|
|
|
#voip xpon for MT7505
|
|
ifneq ($(strip $(TCSUPPORT_CPU_MT7505)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_XPON_WAN_DIR) \
|
|
$(MODULES_PRIV_SRC_DIR)/voip_2.6.36 \
|
|
$(MODULES_PRIV_SRC_DIR)/voip \
|
|
$(TRUNK_DIR)/windows_rndis_driver
|
|
endif
|
|
|
|
#delete linux kernel dir for this release don't support the other kernel to compile
|
|
ifneq ($(strip $(TCSUPPORT_2_6_36_KERNEL)),)
|
|
UNOPEN_FILE_DELETE += $(TRUNK_DIR)/linux
|
|
else
|
|
UNOPEN_FILE_DELETE += $(TRUNK_DIR)/linux-2.6.36
|
|
endif
|
|
|
|
ifeq ($(strip $(TCSUPPORT_CPU_MT7505)),)
|
|
UNOPEN_FILE_DELETE += $(BOOTROM_DIR)/ddr_cal_mt7505 \
|
|
$(BOOTROM_DIR)/start.S_7505_final
|
|
endif
|
|
|
|
ifeq ($(strip $(TCSUPPORT_CPU_EN7512) $(TCSUPPORT_CPU_EN7521)),)
|
|
UNOPEN_FILE_DELETE += $(BOOTROM_DIR)/ddr_cal_en7512 \
|
|
$(BOOTROM_DIR)/en7512_boot \
|
|
$(BOOTROM_DIR)/ld_spram_en7512.script \
|
|
$(BOOTROM_DIR)/start.S_7512_final \
|
|
$(MODULES_ETHER_DIR) \
|
|
$(MODULES_FE_7512_DIR) \
|
|
$(MODULES_QDMA_7512_DIR)
|
|
endif
|
|
|
|
ifeq ($(strip $(TCSUPPORT_BONDING)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_BONDING_PCIE_DIR)
|
|
endif
|
|
|
|
ifeq ($(strip $(TCSUPPORT_XPON_HAL_API_MCST)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_PRIV_SRC_DIR)/mtk_multicast
|
|
endif
|
|
|
|
ifeq ($(strip $(TCSUPPORT_SLM_VERIFY)),)
|
|
UNOPEN_FILE_DELETE += $(MODULES_SLM_DIR)
|
|
endif
|
|
|
|
#FTTDP
|
|
UNOPEN_FILE_DELETE += $(MODULES_FTTDP_INIC_DIR)
|
|
|
|
|
|
OTHER_FILE_DELETE= \
|
|
$(PROJECT_DIR)/images/tcboot.bin \
|
|
$(PROJECT_DIR)/images/tclinux.bin \
|
|
$(PROJECT_DIR)/images/tclinux_allinone \
|
|
$(PROJECT_DIR)/images/tclinux_allinone.swap \
|
|
$(FILESYSTEM_DIR)/dev/* \
|
|
$(TRUNK_DIR)/backup \
|
|
$(MODULES_PRIV_SRC_DIR)/wifi/ATHR-GEMINI-AP9.0.0.33.tgz \
|
|
$(MODULES_PRIV_SRC_DIR)/wifi/2008_0506_RT61_Linux_SoftAP_Drv1.1.3.0 \
|
|
$(MODULES_PRIV_SRC_DIR)/wifi/2009_0209_RT3090_LinuxAP_V2.1.3.0 \
|
|
$(MODULES_PRIV_SRC_DIR)/wifi/2009_0904_RT3090_LinuxAP_v2.3.0.0_TC_for_3092 \
|
|
|
|
ALL:
|
|
|
|
for FILE in $(UNOPEN_FILE_DELETE) $(OTHER_FILE_DELETE); \
|
|
do\
|
|
echo "******rm -rf $$FILE***********************************";\
|
|
rm -rf $$FILE; \
|
|
echo "******************************************************";\
|
|
done \
|
|
|
|
if [ $$(ls -A $(BOOTROM_DIR)/ddr_cal/reserved|wc -w) -gt 0 ]; then\
|
|
cp -Rf $(BOOTROM_DIR)/ddr_cal/reserved/* $(BOOTROM_DIR)/ddr_cal/output/.;\
|
|
cp -Rf $(BOOTROM_DIR)/ddr_cal/reserved/spram.c $(BOOTROM_DIR)/ddr_cal/.;\
|
|
rm -rf $(BOOTROM_DIR)/ddr_cal/output/*.c;\
|
|
rm -rf $(BOOTROM_DIR)/ddr_cal/reserved;\
|
|
fi
|
|
if [ $$(ls -A $(BOOTROM_DIR)/ddr_cal_mt7505/reserved|wc -w) -gt 0 ]; then\
|
|
cp -Rf $(BOOTROM_DIR)/ddr_cal_mt7505/reserved/* $(BOOTROM_DIR)/ddr_cal_mt7505/output/.;\
|
|
cp -Rf $(BOOTROM_DIR)/ddr_cal_mt7505/reserved/spram.c $(BOOTROM_DIR)/ddr_cal_mt7505/.;\
|
|
rm -rf $(BOOTROM_DIR)/ddr_cal_mt7505/output/*.c;\
|
|
rm -rf $(BOOTROM_DIR)/ddr_cal_mt7505/reserved;\
|
|
fi
|
|
if [ $$(ls -A $(BOOTROM_DIR)/ddr_cal_en7512/reserved|wc -w) -gt 0 ]; then\
|
|
cp -Rf $(BOOTROM_DIR)/ddr_cal_en7512/reserved/* $(BOOTROM_DIR)/ddr_cal_en7512/output/.;\
|
|
cp -Rf $(BOOTROM_DIR)/ddr_cal_en7512/reserved/spram.c $(BOOTROM_DIR)/ddr_cal_en7512/.;\
|
|
rm -rf $(BOOTROM_DIR)/ddr_cal_en7512/output/*.c;\
|
|
rm -rf $(BOOTROM_DIR)/ddr_cal_en7512/reserved;\
|
|
fi
|
|
|
|
find $(PROJECT_DIR)/config/menuconfig/ -name "*.config" -not -name "$(CUSTOM)*" | xargs rm -rf
|
|
|
|
find $(TRUNK_DIR) -name "CVS" | xargs rm -rf
|
|
#echo special keys to avoid duplicated release process.
|
|
echo "TC_BUILD_RELEASECODE=y" > Project/release.chk
|
|
echo "export TC_BUILD_RELEASECODE" >>Project/release.chk
|