Skip to content

Commit

Permalink
add openmultiboot tools
Browse files Browse the repository at this point in the history
merge for oe-oe-alliance
  • Loading branch information
Dima73 committed Sep 2, 2016
1 parent 34480d2 commit de005d1
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions meta-openpli/recipes-openpli/openmultiboot/openmultiboot.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
SUMMARY = "Multi boot loader for enigma2"
MAINTAINER = "oe-alliance"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

inherit gitpkgv

SRCREV = "${AUTOREV}"
PV = "1.0+git${SRCPV}"
PKGV = "1.0+git${GITPKGV}"

PACKAGE_ARCH = "${MACHINE_ARCH}"

DEPENDS = "freetype"

SRC_URI = "git://github.com/oe-alliance/openmultiboot.git;protocol=git"

inherit autotools-brokensep pkgconfig

S = "${WORKDIR}/git"

EXTRA_OEMAKE = " \
'CFLAGS=${CFLAGS} \
-I=${includedir}/freetype2 \
${@base_contains("MACHINE_FEATURES", "singlecore", "-DOMB_DEFAULT_TIMER=10" , "-DOMB_DEFAULT_TIMER=5", d)} \
${@base_contains("MACHINE_FEATURES", "textlcd", "-DOMB_HAVE_TEXTLCD" , "", d)} \
${@base_contains("IMAGE_FSTYPES", "ubi", "-DOMB_FLASH_UBI" , "", d)} \
${@base_contains("IMAGE_FSTYPES", "jffs2", "-DOMB_FLASH_JFFS2" , "", d)} \
${@base_contains("MACHINE_FEATURES", "dreambox", "-DOMB_DREAMBOX", "", d)} \
${@base_contains("MACHINE_FEATURES", "mmc", "-DOMB_MMCBLK", "", d)} \
-DOMB_KERNEL_MTD=\"/dev/${MTD_KERNEL}\"' \
'LDFLAGS= -lfreetype ${LDFLAGS}' \
"

do_install() {
install -d ${D}/sbin
install -m 755 ${S}/src/open_multiboot ${D}/sbin
}

pkg_preinst_${PN}() {
#!/bin/sh
if mountpoint -q /usr/lib/enigma2/python/Plugins/Extensions/OpenMultiboot; then
echo "openMultiBoot will only install on main image."
echo "Child image is running - canceling installation!"
sleep 3
exit 1
else
echo "Main image is running - proceeding installation..."
exit 0
fi
}

pkg_postrm_${PN}() {
#!/bin/sh
rm /sbin/init
ln -s /sbin/init.sysvinit /sbin/init
rm -rf /sbin/open-multiboot-branding-helper.py
exit 0
}

0 comments on commit de005d1

Please sign in to comment.