-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge for oe-oe-alliance
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
meta-openpli/recipes-openpli/openmultiboot/openmultiboot.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |