clearsilver: fix various build issues
[openembedded.git] / recipes / maemo / nokia770-init_1.0.bb
blob00799409457670ae154677988504bb67417c20a1
1 LICENSE = "GPL"
2 PR = "r6"
4 DEPENDS = "base-passwd"
6 SRC_URI = "file://fixup-770.sh"
8 COMPATIBLE_MACHINE = "(nokia770|nokia800)"
10 inherit update-rc.d
12 INITSCRIPT_NAME = "fixup-770.sh"
13 INITSCRIPT_PARAMS = "defaults 01"
15 FILES_${PN} = "${sysconfdir} ${libdir}"
17 do_install () {
18 install -d ${D}${sysconfdir}/init.d
19 install -m 755 ${WORKDIR}/fixup-770.sh ${D}/${sysconfdir}/init.d/fixup-770.sh
21 install -d ${D}/lib/firmware
24 pkg_postinst () {
25 #!/bin/sh
27 # can't do adduser stuff offline
28 if [ "x$D" != "x" ]; then
29 exit 1
32 # set up some links to firmware and modules in initrd
33 mkdir -p /lib/firmware
34 ln -sf /mnt/initfs/usr/lib/hotplug/firmware/3825.arm /lib/firmware/3825.arm
35 ln -sf /mnt/initfs/usr/lib/hotplug/firmware/3826.arm /lib/firmware/3826.arm
36 ln -sf /mnt/initfs/usr/lib/hotplug/firmware/bc4fw.bin /lib/firmware/bc4fw.bin
37 ln -sf /mnt/initfs/usr/lib/hotplug/firmware/brf6150fw.bin /lib/firmware/brf6150fw.bin
38 ln -sf /mnt/initfs/usr/lib/hotplug/firmware/mtlm3825.arm /lib/firmware/mtlm3825.arm
39 ln -sf /mnt/initfs/usr/lib/hotplug/firmware/mtlm3826.arm /lib/firmware/mtlm3826.arm
41 # rm -rf /lib/modules
42 # ln -s /mnt/initfs/lib/modules /lib/modules