Files
BPI-M2C/source_sync_rls_25c/layers/meta-unisoc/recipes-navigation/gnss/gnss.inc
T
2026-09-22 09:38:26 +08:00

36 lines
1.8 KiB
PHP
Executable File

inherit get_release_mode
GNSS_SRC_DIR = "${OEROOT}/source/unisoc/modules/gnss/gnssmgt"
GNSS_INSTALL_DIR = "${DEPLOY_OUT_DIR}/gnss"
GNSS_RELEASE_DIR = "${PREBUILTS_OUT_DIR}/gnss/gnssmgt"
export GNSS_SRC_MODE="${@get_release_mode(d, "${GNSS_SRC_DIR}")}"
EXTERNALSRC = "${@bb.utils.contains("GNSS_SRC_MODE", "customer", "${GNSS_RELEASE_DIR}", "${GNSS_SRC_DIR}", d)}"
GNSS_CHPID_GE2 = "${@bb.utils.contains_any('MACHINE', 'sl8521e-base sl8521e-smartcoreboard sl8521e-3in1 sl8541e-3in1 sl8541e-smartpen64 sl8541e-smartpen64-wifionly sl8541e-smartpen32 sl8541e-smartpen32-wifionly sl8581e-3in1 sc9863a-1h10', 'ge2', '', d)}"
export GNSS_CHPID = "${@bb.utils.contains_any('MACHINE', 't710-smartcoreboard ums9620-1h10 ums9620-2h10 ums9620-2h10-k515 ums9620-2h10-otaab unisoc-qemuarm64-ums9620-2h10', 'marlin3lite', '${GNSS_CHPID_GE2}' ,d)}"
export LIB_PATH = "${@bb.utils.contains('TARGET_ARCH', 'aarch64', '64bit', '32bit', d)}"
export LCS_PS_CP_ENABLE = "${@bb.utils.contains_any('MACHINE', 'uis8520-1h10-nand uis8520-1h10-emmc', '1', '0', d)}"
export LCS_PS_CP_DEVICE = "${@bb.utils.contains_any('MACHINE', 'uis8520-1h10-nand uis8520-1h10-emmc', '/dev/stty_nr', '/dev/stty_lte', d)}"
export LCS_PS_CP_PROP = "${@bb.utils.contains_any('MACHINE', 'uis8520-1h10-nand uis8520-1h10-emmc', 'persist.vendor.modem.nr.enable', 'persist.vendor.modem.l.enable', d)}"
export PHAROS_SRC_ENABLE = "${@bb.utils.contains_any('MACHINE', 'uis8520-1h10-nand uis8520-1h10-emmc', '1', '0', d)}"
#export PHAROS_SRC_ENABLE = "$1"
do_compile () {
if [ ${PHAROS_SRC_ENABLE} != "1" ]; then
if [ ${GNSS_SRC_MODE} != "customer" ]; then
make clean
make
fi
else
if [ ${GNSS_SRC_MODE} != "customer" ]; then
make -f Makefile_pharos clean
make -f Makefile_pharos
fi
fi
}