chore(make): update Makefile

remove some unused Makefile code and optimize some code

Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: I1c31d07481bb6aee47b0c51d63d6b68316c38c88
This commit is contained in:
Caoruihong
2021-08-17 19:59:32 +08:00
parent e1472b494f
commit e1b9a6b185
14 changed files with 192 additions and 344 deletions
+6 -4
View File
@@ -46,8 +46,8 @@ device_path=${12}
echo "${board_name}" "${device_company}"
echo "sh param:" "$@"
destination="defconfig"
function main() {
destination=".config"
tee=""
if [ "${tee_enable}" = "true" ]; then
tee="_tee"
@@ -85,10 +85,12 @@ if [ "x" != "x${arch_cflags}" ]; then
export ARCH_CFLAGS="${arch_cflags}"
fi
export OUTDIR="${outdir}"
export PRODUCT_PATH="${product_path}"
export DEVICE_PATH="${device_path}"
OUTDIR="${outdir}"
CONFIG="$(realpath ${destination})"
main && \
make clean && \
make -j rootfs VERSION="${ohos_version}"
make clean CONFIG="$CONFIG" OUTDIR="$OUTDIR" && \
make -j all VERSION="${ohos_version}" CONFIG="$CONFIG" OUTDIR="$OUTDIR"