mirror of
https://github.com/Fishwaldo/meta-pine64.git
synced 2025-03-15 19:41:59 +00:00
Dont pin the initramfs package to the kernel package.
This commit is contained in:
parent
7ff6740833
commit
29ee45ddf7
1 changed files with 2 additions and 21 deletions
|
@ -1,33 +1,14 @@
|
|||
SUMMARY = "Install a InitRamFS enabled FitImage"
|
||||
LICENSE = "MIT"
|
||||
LICENSE = "CLOSED"
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
SRC_URI = " \
|
||||
file://checkfitimage.sh \
|
||||
"
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
inherit kernel-artifact-names module-base
|
||||
|
||||
KERNEL_PRIORITY ?= "${@int(d.getVar('KERNEL_VERSION',1).split('-')[0].split('+')[0].split('.')[0]) * 10000 + \
|
||||
int(d.getVar('KERNEL_VERSION',1).split('-')[0].split('+')[0].split('.')[1]) * 100 + \
|
||||
int(d.getVar('KERNEL_VERSION',1).split('-')[0].split('+')[0].split('.')[-1])}"
|
||||
|
||||
|
||||
|
||||
PV="${KERNEL_VERSION}"
|
||||
|
||||
|
||||
python do_package:prepend() {
|
||||
import oe.packagedata
|
||||
pkgv = oe.packagedata.read_subpkgdata('kernel-image-fitimage', d)['PKGV']
|
||||
d.setVar('PKGV', pkgv)
|
||||
pkgr = oe.packagedata.read_subpkgdata('kernel-image-fitimage', d)['PKGR']
|
||||
#d.setVar('PKGR', pkgr)
|
||||
bb.note("PKGV: %s" % d.getVar('PKGV'))
|
||||
bb.note("PKGR: %s" % d.getVar('PKGR'))
|
||||
}
|
||||
|
||||
pkg_preinst:${PN} () {
|
||||
bootpart=`lsblk -o NAME,LABEL -r | grep "mmcblk[0-9]p[0-9] boot" | awk -F' ' '{print $1}'`
|
||||
if [ ! -z "$bootpart" ];
|
||||
|
|
Loading…
Add table
Reference in a new issue