50 lines
1.4 KiB
BlitzBasic
50 lines
1.4 KiB
BlitzBasic
# SPDX-FileCopyrightText: 2023 Unisoc (Shanghai) Technologies Co., Ltd.
|
|||
|
|
#
|
||
|
|
# SPDX-License-Identifier: LicenseRef-Unisoc-General-1.0
|
||
|
|
DESCRIPTION = "Unisoc APRD Module"
|
||
|
|
HOMEPAGE = "http://www.unisoc.com/"
|
||
|
|
LICENSE = "Unisoc-General-1.0"
|
||
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=6ec6785348c6cef0f1ba4743a50ff8aa"
|
||
|
|
SECTION:${PN} = "base"
|
||
|
|
|
||
|
|
SRC_URI = "ssh://gitadmin@gitmirror.unisoc.com/yocto/unisoc/aprd;protocol=ssh;branch=unc_linux_trunk_2.0"
|
||
|
|
|
||
|
|
# Modify these as desired
|
||
|
|
PV = "1.0+git${SRCPV}"
|
||
|
|
SRCREV = "${AUTOREV}"
|
||
|
|
PROVIDES = "aprd"
|
||
|
|
EXTERNALSRC_BUILD = "${EXTERNALSRC}"
|
||
|
|
|
||
|
|
DEPENDS = "libxml2 iniparser curl update-rc.d-native"
|
||
|
|
RDEPENDS:${PN} = "libxml2 iniparser curl"
|
||
|
|
|
||
|
|
do_compile () {
|
||
|
|
# Specify compilation commands here
|
||
|
|
oe_runmake -C ${S}
|
||
|
|
}
|
||
|
|
|
||
|
|
do_install () {
|
||
|
|
# Specify install commands here
|
||
|
|
oe_runmake -C ${S} install DESTDIR=${D}
|
||
|
|
}
|
||
|
|
|
||
|
|
do_install:append () {
|
||
|
|
install -d ${D}${sysconfdir}/init.d
|
||
|
|
install -m 0755 ${THISDIR}/files/script/init-aprd.sh ${D}/${sysconfdir}/init.d/init-aprd
|
||
|
|
|
||
|
|
install -d ${D}${sysconfdir}/aprd/
|
||
|
|
install -m 0666 ${THISDIR}/files/config/aprd.ini ${D}${sysconfdir}/aprd/aprd.ini
|
||
|
|
|
||
|
|
if [ ${@bb.utils.contains('USERDEBUG', 'userdebug', 'yes', 'no', d)} = yes ]
|
||
|
|
then
|
||
|
|
update-rc.d -r ${D} init-aprd start 91 5 .
|
||
|
|
fi
|
||
|
|
}
|
||
|
|
|
||
|
|
FILES:${PN} += " \
|
||
|
|
${bindir}/aprd \
|
||
|
|
${sysconfdir}/aprd/aprd.ini \
|
||
|
|
"
|
||
|
|
|
||
|
|
TARGET_CC_ARCH += "${LDFLAGS}"
|