Files

49 lines
1.3 KiB
BlitzBasic
Raw Permalink Normal View History

2026-09-22 09:38:26 +08:00
DESCRIPTION = "debug tools - systemdebugger"
HOMEPAGE = "http://www.unisoc.com/"
LICENSE = "GPLv2"
SECTION = "bin"
PV = "0.1"
PR = "r0"
LIC_FILES_CHKSUM = "file://COPYING;md5=36dba8813a86f10cc3ecfbcf89dc6eab"
export USER_FLAGS = "${@bb.utils.contains('USERDEBUG','user','-DCONFIG_USER','',d)}"
export SOC_FLAGS = "${@bb.utils.contains('UNISOC_SOC','s9863a','-DCONFIG_SOC_L3','',d)}"
export REBOOT_CONFIG_SOC_M6= "${SOC_M6}"
export REBOOT_CONFIG_SOC_UIS8520= "${SOC_UIS8520}"
SRC_URI = " \
file://systemdebuggerdinit.sh \
file://systemdebuggerd.service \
"
export STORAGE_TYPE_NAND_FLAGS = "${@bb.utils.contains('STORAGE_TYPE','nand','-DCONFIG_NAND','',d)}"
inherit unisoc_ubuntu_toolchain
inherit systemd
do_compile () {
oe_runmake -C ${S} O=${B} clean
oe_runmake -C ${S} O=${B}
}
do_install () {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/systemdebuggerdinit.sh ${D}/${sysconfdir}/init.d/systemdebuggerdinit
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/systemdebuggerd.service ${D}${systemd_unitdir}/system
install -d ${D}${bindir}/
install -m 0755 ${S}/systemdebuggerd ${D}${bindir}/systemdebuggerd
}
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE:${PN} = "systemdebuggerd.service"
NATIVE_SYSTEMD_SUPPORT = "1"
TARGET_CC_ARCH += "${LDFLAGS}"