summaryrefslogtreecommitdiffstats
path: root/meta/unslung-image-base.oe
blob: 294b0453efb4a63e5f2fc01e57c7ab6d9959f4d0 (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
IMAGE_LINGUAS = ""
USE_DEVFS = "1"

UNSLUNG_BASE_PACKAGES = "slingbox ipkg wget"

IPKG_INSTALL = "${UNSLUNG_BASE_PACKAGES}"

DEPENDS ?= "virtual/kernel nslu2-unslung-ramdisk ${UNSLUNG_BASE_PACKAGES}"
IMAGE_BASENAME ?= "unslung"

UNSLUNG_DEVICE_TABLE = "${@oe.which(oe.data.getVar('OEPATH', d, 1), 'files/device_table-unslung.txt')}"
EXTRA_IMAGECMD_ext2.gz = "-f ${UNSLUNG_DEVICE_TABLE}"

IMAGE_PREPROCESS_COMMAND += "unslung_clean_image; "
		
inherit image_ipk

# Note that anything in this function must be repeatable without having to rebuild the rootfs
unslung_clean_image () {

	# Remove all traces of the ipkg stuff we did to get this rootfs
	rm -rf ${IMAGE_ROOTFS}/usr/lib/ipkg
	if [ -f ${IMAGE_ROOTFS}/usr/bin/ipkg-cl ]; then
	  rm -f ${IMAGE_ROOTFS}/usr/bin/ipkg
	  mv ${IMAGE_ROOTFS}/usr/bin/ipkg-cl ${IMAGE_ROOTFS}/usr/bin/ipkg
	fi
	rm -f ${IMAGE_ROOTFS}/usr/bin/update-alternatives

}