summaryrefslogtreecommitdiff
path: root/packages/meta/openslug-image.bb
blob: a58f3d7c2db3329547547b38ab85df17d0b620a1 (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
PR = "r4"

IMAGE_BASENAME = "openslug"

IMAGE_LINGUAS = ""
USE_DEVFS = "1"

OPENSLUG_HIDDEN_PACKAGES = "ipkg-native ipkg-utils-native fakeroot-native ${PATCH_DEPENDS} virtual/armeb-linux-uclibc-gcc \
	virtual/libc makedevs-native mtd-utils-native slugimage-native nslu2-linksys-firmware nslu2-switchbox-firmware "

DEPENDS = "base-files base-passwd-3.5.7 \
        busybox dropbear initscripts netbase \
        sysvinit tinylogin lrzsz portmap \
        ixp4xx-csr ixp425-eth openslug-init \
        ipkg-collateral ipkg ipkg-link \
	cpio findutils e2fsprogs \
        ${OPENSLUG_EXTRA_DEPENDS}"

IPKG_INSTALL = "base-files base-passwd \
        busybox dropbear initscripts netbase \
        update-modules sysvinit tinylogin lrzsz portmap \
        ixp4xx-csr ixp425-eth openslug-init \
        ipkg-collateral ipkg ipkg-link \
	cpio findutils e2fsprogs-mke2fs \
	e2fsprogs-fsck e2fsprogs-e2fsck \
	kernel-module-nfs kernel-module-sunrpc kernel-module-lockd  \
        ${OPENSLUG_EXTRA_INSTALL}"

inherit image_ipk

python () {
	# Don't build openslug images unless we're targeting an nslu2
	mach = bb.data.getVar("MACHINE", d, 1)
	dist = bb.data.getVar("DISTRO", d, 1)
	if mach != 'nslu2' or dist != 'openslug':
		raise bb.parse.SkipPackage("OpenSlug only builds for the Linksys NSLU2")
}
LICENSE = MIT