Files
kernel_common_drivers/scripts/amlogic/mk_zapper32.sh
T
Dezhen Wang a61ab1ee3d script: optimize script mk_zapper32.sh [1/1]
PD#SWPL-136789

Problem:
optimize script mk_c3_min.sh

Solution:
1. support --savedefconfig
2. optimize script mk_zapper32.sh

Verify:
local

Change-Id: I3f8e578bed3459cd5ca4c46c538f97c3f9678eec
Signed-off-by: Dezhen Wang <dezhen.wang@amlogic.com>
2023-08-17 00:19:08 -07:00

31 lines
1009 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
#
# Copyright (c) 2019 Amlogic, Inc. All rights reserved.
#
ROOT_DIR=`pwd`
ARCH=arm
CROSS_COMPILE_TOOL=${ROOT_DIR}/prebuilts/gcc/linux-x86/host/x86_64-arm-10.3-2021.07/bin/arm-none-linux-gnueabihf-
OPTION_PARAM="$*"
if [[ "${OPTION_PARAM}" =~ "--all" ]]; then
echo "make meson64_a32_zapper_defconfig and meson64_a32_zapper_ext_defconfig"
DEBUG=1
OPTION_PARAM=${OPTION_PARAM//--all/}
DEFCONFIG=meson64_a32_zapper_all_defconfig
CONFIG_DIR=${ROOT_DIR}/common/common_drivers/arch/${ARCH}/configs
KCONFIG_CONFIG=${CONFIG_DIR}/${DEFCONFIG} ${ROOT_DIR}/common/scripts/kconfig/merge_config.sh -m -r \
${CONFIG_DIR}/meson64_a32_zapper_defconfig \
${CONFIG_DIR}/meson64_a32_zapper_ext_defconfig
else
echo "make meson64_a32_zapper_defconfig"
DEFCONFIG=meson64_a32_zapper_defconfig
fi
source ${ROOT_DIR}/common/common_drivers/scripts/amlogic/mk_smarthome_common.sh ${OPTION_PARAM}
if [[ "${DEBUG}" == "1" ]]; then
rm ${CONFIG_DIR}/${DEFCONFIG}
fi