aboutsummaryrefslogtreecommitdiff
path: root/recipes/images/net-at91sam9-image.bb
blob: 856ae1857976289336ca4827cbc7860bde6678a2 (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
#Angstrom network centric at91sam9 image

IMAGE_PREPROCESS_COMMAND = "create_etc_timestamp"

ANGSTROM_EXTRA_INSTALL += " \
	madplay \
	alsa-utils-aplay \
	alsa-utils-amixer \
	alsa-utils-alsamixer \
	alsa-utils-alsactl \
	iperf \
	dosfstools \
	mtd-utils \
	bash-sh \
	mplayer \
	iproute2 \
	iptables \
	bridge-utils \
	canutils \
	"

DEPENDS = "task-base-extended \
           ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \
	   "

IMAGE_INSTALL = "task-base-extended \
	    ${ANGSTROM_EXTRA_INSTALL} \
	    ${@base_contains("MACHINE_FEATURES", "screen", "psplash-zap", "",d)} \
	   "

export IMAGE_BASENAME = "net-at91sam9-image"
IMAGE_LINGUAS = ""

#we dont need the kernel in the image
ROOTFS_POSTPROCESS_COMMAND += "rm -f ${IMAGE_ROOTFS}/boot/*Image*; "

at91sam9_rootfs_postprocess() {
	curdir=$PWD
	cd ${IMAGE_ROOTFS}

	# bash-sh: pkg_postinst_bash command shall be run again
	# (overloaded by busybox shell)
	cd bin
	ln -sf bash sh

	cd $curdir
}

ROOTFS_POSTPROCESS_COMMAND += "at91sam9_rootfs_postprocess; "

inherit image