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.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/Project/release_backup_bsp
2024-07-22 01:58:46 -03:00

47 lines
2.9 KiB
Plaintext
Executable File

#this target will do "make" process for SDK release, with loop of clean>>>make profile[i]>>>backup *.ko , *.o>>> clean....
release_backup:
echo "*****release backup BSP*****"
ifneq ($(strip $(BSP)),)
rm -rf $(APP_DIR)
endif
cp -rf $(TRUNK_DIR)/filesystem $(TRUNK_DIR)/filesystem_clean;
ifneq ($(strip $(KERNEL_2_6_36)),)
for release in ${PROFILE_SELECT} ; \
do \
echo "*************************************************"; \
echo "*************************************************"; \
echo "*****$$release making and backup in progress********"; \
echo "*************************************************"; \
sleep 3;\
echo "*************************************************"; \
${MAKE} -f "$(PROJECT_DIR)/MakeFile_Main" PROFILE=$${release} KERNEL_2_6_36=1 CUSTOM=${CUSTOM} BSP=1 clean ; if [ $$? != 0 ];then exit 1;fi; \
echo "*************************************************"; \
${MAKE} -f "$(PROJECT_DIR)/MakeFile_Main" PROFILE=$${release} KERNEL_2_6_36=1 CUSTOM=${CUSTOM} BSP=1 RELEASEBSP=y bootbase kernel modules app_bsp; if [ $$? != 0 ];then exit 1;fi; \
echo "*************************************************"; \
${MAKE} -f "$(PROJECT_DIR)/MakeFile_Main" PROFILE=$${release} KERNEL_2_6_36=1 CUSTOM=${CUSTOM} BSP=1 RELEASEBSP=y release_bsp;if [ $$? != 0 ];then exit 1;fi; \
echo "**************************************************"; \
${MAKE} -f "$(PROJECT_DIR)/MakeFile_Main" PROFILE=$${release} KERNEL_2_6_36=1 CUSTOM=${CUSTOM} BSP=1 clean ; if [ $$? != 0 ];then exit 1;fi; \
echo "**************************************************"; \
done
else
for release in ${PROFILE_SELECT} ; \
do \
echo "*************************************************"; \
echo "*************************************************"; \
echo "*****$$release making and backup in progress********"; \
echo "*************************************************"; \
sleep 3;\
echo "*************************************************"; \
${MAKE} -f "$(PROJECT_DIR)/MakeFile_Main" PROFILE=$${release} CUSTOM=${CUSTOM} BSP=1 clean ; if [ $$? != 0 ];then exit 1;fi; \
echo "*************************************************"; \
${MAKE} -f "$(PROJECT_DIR)/MakeFile_Main" PROFILE=$${release} CUSTOM=${CUSTOM} BSP=1 RELEASEBSP=y bootbase kernel modules app_bsp; if [ $$? != 0 ];then exit 1;fi; \
echo "*************************************************"; \
${MAKE} -f "$(PROJECT_DIR)/MakeFile_Main" PROFILE=$${release} CUSTOM=${CUSTOM} BSP=1 RELEASEBSP=y release_bsp;if [ $$? != 0 ];then exit 1;fi; \
echo "**************************************************"; \
${MAKE} -f "$(PROJECT_DIR)/MakeFile_Main" PROFILE=$${release} CUSTOM=${CUSTOM} BSP=1 clean ; if [ $$? != 0 ];then exit 1;fi; \
echo "**************************************************"; \
done
endif
rm -rf $(TRUNK_DIR)/filesystem;
mv -f $(TRUNK_DIR)/filesystem_clean $(TRUNK_DIR)/filesystem