blob: b403cda2ab3b565f1a2c35ecdfe5f2a934347611 (
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
47
48
49
50
51
52
53
54
55
56
57
|
DESCRIPTION = "Linux Kernel for the IOMega StorCenter"
SECTION = "kernel"
LICENSE = "GPL"
PR = "r2"
DEPENDS = "dtc-native"
COMPATIBLE_MACHINE = "storcenter"
SRC_URI = "http://kernel.org/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
file://fw-and-powerpc-install.patch;patch=1 \
file://defconfig-${PV} \
"
S = "${WORKDIR}/linux-${PV}"
inherit kernel
export ARCH="powerpc"
KERNEL_IMAGETYPE = "uImage"
FILES_kernel-image += "/boot/storcenter.dtb"
do_configure() {
mkdir -p ${IMAGE_ROOTFS}
install -m 0644 ${WORKDIR}/defconfig-${PV} ${S}/.config
ARCH=${ARCH} oe_runmake oldconfig
}
do_install_append() {
rm -f ${D}/boot/vmlinux-*
dtc -f -I dts -O dtb -o ${D}/boot/storcenter.dtb -V 16 ${S}/arch/${ARCH}/boot/dts/storcenter.dts
}
do_builtin_initramfs_foonas() {
:
}
pkg_preinst_foonas() {
if [ "x$D" != "x" ]; then
ln -sf ${KERNEL_IMAGETYPE}-${PV} ${D}/boot/uImage
exit 1
fi
rm -f /boot/uImage
ln -sf ${KERNEL_IMAGETYPE}-${PV} /boot/uImage
}
do_deploy() {
install -d ${DEPLOY_DIR_IMAGE}
install -m 0644 ${S}/arch/${ARCH}/boot/${KERNEL_IMAGETYPE} ${DEPLOY_DIR_IMAGE}/vmlinux.UBoot
install -m 0644 ${D}/boot/storcenter.dtb ${DEPLOY_DIR_IMAGE}/storcenter.dtb
}
do_deploy[dirs] = "${S}"
addtask deploy before do_package after do_install
|