mirror of
https://github.com/gnuton/asuswrt-merlin.ng.git
synced 2025-05-18 15:31:54 +02:00
45 lines
1.2 KiB
Makefile
45 lines
1.2 KiB
Makefile
|
|
define dsl_genbintrx_prolog
|
|
@( \
|
|
if [ "$(BUILD_NAME)" != "DSL-N55U" -a "$(BUILD_NAME)" != "DSL-N55U-B" ] ; then \
|
|
rm -rf image; \
|
|
mkdir image; \
|
|
else \
|
|
echo "call dsl routines"; \
|
|
mkdir reltmp; \
|
|
rm -rf image; \
|
|
mkdir image; \
|
|
rm -rf make_img; \
|
|
rm -rf tc_asus_bin; \
|
|
fi; \
|
|
)
|
|
endef
|
|
|
|
define dsl_genbintrx_epilog
|
|
@( \
|
|
if [ "$(BUILD_NAME)" = "DSL-N55U" -o "$(BUILD_NAME)" = "DSL-N55U-B" ] ; then \
|
|
echo "start to generate DSL , BIN and trx"; \
|
|
cp -R asustools/autobuild-tool/make_img make_img; \
|
|
cp -R asustools/autobuild-tool/tc_asus_bin tc_asus_bin; \
|
|
echo "#!/bin/sh" > cptrx.sh; \
|
|
echo "cp image/$(BUILD_NAME)_*.trx reltmp" >> cptrx.sh; \
|
|
echo "cp image/$(BUILD_NAME)_*.trx make_img" >> cptrx.sh; \
|
|
chmod 777 ./cptrx.sh; \
|
|
./cptrx.sh; \
|
|
rm -f cptrx.sh; \
|
|
cd make_img; \
|
|
echo `find . -maxdepth 1 -name "DSL*.trx"` > tmp.txt; \
|
|
chmod 777 ./LnxBinMrg; \
|
|
./LnxBinMrg `cut -d / -f2 tmp.txt`; \
|
|
echo "#!/bin/sh" > cptrx2.sh; \
|
|
echo "cp $(BUILD_NAME)_*.trx ../image" >> cptrx2.sh; \
|
|
echo "cp $(BUILD_NAME)_*.bin ../image" >> cptrx2.sh; \
|
|
chmod 777 ./cptrx2.sh; \
|
|
./cptrx2.sh; \
|
|
cd ..; \
|
|
rm -rf make_img; \
|
|
rm -rf tc_asus_bin; \
|
|
fi; \
|
|
)
|
|
endef
|
|
|