aboutsummaryrefslogtreecommitdiff
path: root/recipes/linux/linux-storcenter_2.6.27.7.bb
blob: dd606a210923fc29eb5b0b7c0c17d669271ea7a1 (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
58
59
60
DESCRIPTION = "Linux Kernel for the IOMega StorCenter"
SECTION = "kernel"
LICENSE = "GPLv2"
PR = "r2"

DEPENDS = "dtc-native"
COMPATIBLE_MACHINE = "storcenter"

SRC_URI = "http://kernel.org/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2;name=kernel \
           file://fw-and-powerpc-install.patch \
           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

SRC_URI[kernel.md5sum] = "db323884c7dc46e4cd33d0d944fa59a9"
SRC_URI[kernel.sha256sum] = "8e7075fc855ffbcf3c24cbd70b22791759224f98839886d50bba8d659193a950"