blob: 038573209ac2af221aeed267b533b456900c2bd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#
# Bootloader for sh4 based devices using a HDD or block translation
# layer over the flash. NOTE that this version has the 1024 cylinder
# limit, so you probably need a seperate /boot partition as the first
# partition on the disk. Tested on the NP51R (Titan) booting from the
# onboard flash
#
DESCRIPTION = "LILO (LInux LOader) is a basic system program which \
boots your Linux system. LILO loads the Linux kernel from a floppy or \
a hard drive, boots the kernel, and passes control of the system to \
the kernel. LILO can also boot other operating systems. LILO-sh is a \
port of LILO to the SH processor."
SECTION = "bootloaders"
LICENSE = "MIT"
PR = "r1"
SRC_URI = "http://twibble.org/dist/sh4/src/lilosh/lilo-21.tar.gz \
file://lilo-0.21-include.patch;patch=1 \
file://lilo-0.21-1.1.patch;patch=1 \
file://lilo.patch;patch=1 \
file://lilo.raid1;patch=1 \
file://lilo-0.21-loopdev.patch;patch=1 \
file://lilo-0.21-second.patch;patch=1;pnum=0 \
file://lilo-sh-linux.patch;patch=1 \
file://lilo-linkgear.patch;patch=1 \
file://lilo-noconfig-h.patch;patch=1 \
file://lilo-replace-PAGE_SIZE.patch;patch=1 \
"
S = "${WORKDIR}/lilo"
EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}"
do_install() {
# Create the base directores
mkdir -p ${D}${sysconfdir} ${D}${sbindir}
oe_runmake ROOT=${D} install
# We don't ship this file
rm ${D}/usr/sbin/keytab-lilo.pl
}
# Include /boot in the package
FILES_${PN} = "${base_sbindir} /boot"
# Works for sh3/sh4 only
COMPATIBLE_HOST = "sh.*-linux"
|