2024-09-09 08:57:42 +00:00
|
|
|
inherit autotools-brokensep pkgconfig update-rc.d
|
|
|
|
PR = "r7"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
DESCRIPTION = "Recovery bootloader"
|
|
|
|
LICENSE = "Apache-2.0"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/\
|
|
|
|
${LICENSE};md5=89aea4e17d99a7cacdbeed46a0096b10"
|
|
|
|
HOMEPAGE = "https://www.codeaurora.org/gitweb/quic/la?p=platform/bootable/recovery.git"
|
|
|
|
DEPENDS = "libmincrypt-native system-core"
|
2024-09-09 08:57:42 +00:00
|
|
|
RDEPENDS_${PN} = "zlib bzip2"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
FILESPATH =+ "${WORKSPACE}:"
|
|
|
|
SRC_URI = "file://bootable/recovery/"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
S = "${WORKDIR}/bootable/${PN}/"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
EXTRA_OECONF = "--with-sanitized-headers=${STAGING_KERNEL_BUILDDIR}/usr/include \
|
2024-09-09 08:52:07 +00:00
|
|
|
--with-core-headers=${STAGING_INCDIR_NATIVE}"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
#[lxw start]
|
|
|
|
EXTRA_OEMAKE_RECOVERY = "${@base_conditional('USE_COLOR_OLED_S90319', 'y', 'CFLAGS+=-DUSE_COLOR_OLED_S90319', '', d)}"
|
|
|
|
EXTRA_OEMAKE_RECOVERY += "${@base_conditional('TP_FEATURE_FOR_LTE_MODULE', 'y', 'CFLAGS+=-DTP_FEATURE_FOR_LTE_MODULE', '', d)}"
|
|
|
|
|
|
|
|
EXTRA_OEMAKE_RECOVERY += "${@base_conditional('TP_FEATURE_BACKUP_RESTORE', 'y', 'CFLAGS+=-DTP_FEATURE_BACKUP_RESTORE', '', d)}"
|
|
|
|
#[lxw end]
|
|
|
|
|
|
|
|
PARALLEL_MAKE = ""
|
2024-09-09 08:52:07 +00:00
|
|
|
INITSCRIPT_NAME = "recovery"
|
|
|
|
INITSCRIPT_PARAMS = "start 27 5 . stop 80 0 1 6 ."
|
|
|
|
|
|
|
|
FILES_${PN} += "/cache"
|
|
|
|
FILES_${PN} += "/system"
|
|
|
|
FILES_${PN} += "/tmp"
|
|
|
|
FILES_${PN} += "/res"
|
|
|
|
FILES_${PN} += "/data"
|
|
|
|
do_install_append() {
|
|
|
|
install -m 0755 ${WORKSPACE}/oe-core/meta-msm/recipes/base-files-recovery/fstab -D ${D}${sysconfdir}/fstab
|
|
|
|
install -d ${D}/cache/
|
|
|
|
install -d ${D}/tmp/
|
|
|
|
install -d ${D}/res/
|
|
|
|
install -d ${D}/data/
|
|
|
|
install -d ${D}/system/
|
|
|
|
install -m 0755 ${WORKSPACE}/oe-core/meta-msm/recipes/base-files-recovery/fstab -D ${D}/res/recovery_volume_config
|
2024-09-09 08:57:42 +00:00
|
|
|
install -m 0755 ${S}/start_recovery -D ${D}${sysconfdir}/init.d/recovery
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
oe_runmake() {
|
|
|
|
if [ x"$MAKE" = x ]; then MAKE=make; fi
|
2024-09-09 08:57:42 +00:00
|
|
|
bbnote make -j 1 ${EXTRA_OEMAKE_RECOVERY} "$@"
|
|
|
|
make -j 1 ${EXTRA_OEMAKE_RECOVERY} "$@" || die "oe_runmake failed"
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|