31 lines
982 B
Bash
Executable File
31 lines
982 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=arm64
|
|
#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}" =~ "--mini_debug" ]]; then
|
|
echo "make meson64_a64_mini_defconfig & mini_debug_defconfig"
|
|
DEBUG=1
|
|
OPTION_PARAM=${OPTION_PARAM//--mini_debug/}
|
|
DEFCONFIG=meson64_a64_mini_merge_defconfig
|
|
CONFIG_DIR=${ROOT_DIR}/common_drivers/arch/${ARCH}/configs
|
|
KCONFIG_CONFIG=${CONFIG_DIR}/${DEFCONFIG} ${ROOT_DIR}/common/scripts/kconfig/merge_config.sh -m -r \
|
|
${CONFIG_DIR}/meson64_a64_mini_defconfig \
|
|
${CONFIG_DIR}/mini_debug_defconfig
|
|
else
|
|
echo "make meson64_a64_mini_defconfig"
|
|
DEFCONFIG=meson64_a64_mini_defconfig
|
|
fi
|
|
|
|
source ${ROOT_DIR}/common_drivers/scripts/amlogic/mk_smarthome_common.sh ${OPTION_PARAM}
|
|
|
|
if [[ "${DEBUG}" == "1" ]]; then
|
|
rm -f ${CONFIG_DIR}/${DEFCONFIG}*
|
|
fi
|