mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 11:32:30 +00:00
* More drivers are now kernel modules * Switch from ECID to module serial number for forming USB device ID when flashing Signed-off-by: Matt Madison <matt@madison.systems>
30 lines
859 B
BlitzBasic
30 lines
859 B
BlitzBasic
DESCRIPTION = "Minimal initramfs init script"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
SRC_URI = "\
|
|
file://init-boot.sh \
|
|
file://platform-preboot.sh \
|
|
"
|
|
|
|
S = "${WORKDIR}/sources"
|
|
UNPACKDIR = "${S}"
|
|
|
|
COMPATIBLE_MACHINE = "(tegra)"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
do_install() {
|
|
install -m 0755 ${UNPACKDIR}/init-boot.sh ${D}/init
|
|
install -m 0555 -d ${D}/proc ${D}/sys
|
|
install -m 0755 -d ${D}/dev ${D}/mnt ${D}/run ${D}/usr
|
|
install -m 1777 -d ${D}/tmp
|
|
mknod -m 622 ${D}/dev/console c 5 1
|
|
install -d ${D}${sysconfdir}
|
|
install -m 0644 ${UNPACKDIR}/platform-preboot.sh ${D}${sysconfdir}/platform-preboot
|
|
sed -i -e "s#@@TNSPEC_BOOTDEV@@#${TNSPEC_BOOTDEV}#g" ${D}${sysconfdir}/platform-preboot
|
|
}
|
|
|
|
RDEPENDS:${PN} = "util-linux-blkid kmod"
|
|
FILES:${PN} = "/"
|