summaryrefslogtreecommitdiff
path: root/classes/image_ipk.bbclass
blob: 5fdd34067345749b90505cb367c166304594ad66 (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
61
62
63
64
65
66
67
68
69
70
71
72
inherit rootfs_ipk

# Images are generally built explicitly, do not need to be part of world.
EXCLUDE_FROM_WORLD = "1"

USE_DEVFS ?= "0"

DEPENDS += "makedevs-native"

def get_image_deps(d):
	import bb
	str = ""
	for type in (bb.data.getVar('IMAGE_FSTYPES', d, 1) or "").split():
		deps = bb.data.getVar('IMAGE_DEPENDS_%s' % type, d) or ""
		if deps:
			str += " %s" % deps
	return str

DEPENDS += "${@get_image_deps(d)}"

IMAGE_DEVICE_TABLE ?= "${@bb.which(bb.data.getVar('BBPATH', d, 1), 'files/device_table-minimal.txt')}"
IMAGE_POSTPROCESS_COMMAND ?= ""

# Must call real_do_rootfs() from inside here, rather than as a separate
# task, so that we have a single fakeroot context for the whole process.
fakeroot do_rootfs () {
	set -x
	rm -rf ${IMAGE_ROOTFS}

	if [ "${USE_DEVFS}" != "1" ]; then
		mkdir -p ${IMAGE_ROOTFS}/dev
		makedevs -r ${IMAGE_ROOTFS} -D ${IMAGE_DEVICE_TABLE}
	fi

	real_do_rootfs

	insert_feed_uris	

	rm -f ${IMAGE_ROOTFS}${libdir}/ipkg/lists/oe
	
	${IMAGE_PREPROCESS_COMMAND}
		
	export TOPDIR=${TOPDIR}

	for type in ${IMAGE_FSTYPES}; do
		if test -z "$FAKEROOTKEY"; then
			fakeroot -i ${TMPDIR}/fakedb.image bbimage -t $type -e ${FILE}
		else
			bbimage -n "${IMAGE_NAME}" -t "$type" -e "${FILE}"
		fi
	done

	${IMAGE_POSTPROCESS_COMMAND}
}

insert_feed_uris () {
	
	echo "Building feeds for [${DISTRO}].."
		
	for line in ${FEED_URIS}
	do
		# strip leading and trailing spaces/tabs, then split into name and uri
		line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`"
		feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`"
		feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`"					
		
		echo "Added $feed_name feed with URL $feed_uri"
		
		# insert new feed-sources
		echo "src/gz $feed_name $feed_uri" >> ${IMAGE_ROOTFS}/etc/ipkg/${feed_name}-feed.conf
	done			
}
tr> -rw-r--r--packages/linux/LAB-kernel/initramfs_list32
-rw-r--r--packages/linux/LAB-kernel_2.6.13-hh2.bb37
-rw-r--r--packages/linux/LAB-kernel_cvs.bb69
-rw-r--r--packages/linux/c7x0-kernels-2.4-embedix.bb13
-rw-r--r--packages/linux/chumby-kernel/.mtn2git_empty0
-rw-r--r--packages/linux/chumby-kernel/chumby-override-cmdline.patch13
-rw-r--r--packages/linux/chumby-kernel/defconfig1248
-rw-r--r--packages/linux/chumby-kernel/disable-fbchanging.patch10
-rw-r--r--packages/linux/chumby-kernel_2.6.16-chumby-1.2.bb45
-rw-r--r--packages/linux/collie-kernel-24-8_2.4.18-rmk7-pxa3-embedix20030509.bb4
-rw-r--r--packages/linux/collie-kernel-32-0_2.4.18-rmk7-pxa3-embedix20030509.bb4
-rw-r--r--packages/linux/collie-kernel-32-32_2.4.18-rmk7-pxa3-embedix20030509.bb4
-rw-r--r--packages/linux/collie-kernel-40-24_2.4.18-rmk7-pxa3-embedix20030509.bb4
-rw-r--r--packages/linux/collie-kernel-48-16_2.4.18-rmk7-pxa3-embedix20030509.bb4
-rw-r--r--packages/linux/collie-kernel-58-6-debug_2.4.18-rmk7-pxa3-embedix20030509.bb11
-rw-r--r--packages/linux/collie-kernel-58-6_2.4.18-rmk7-pxa3-embedix20030509.bb4
-rw-r--r--packages/linux/collie-kernel-64-0_2.4.18-rmk7-pxa3-embedix20030509.bb4
-rw-r--r--packages/linux/collie-kernels-2.4-embedix.bb12
-rw-r--r--packages/linux/compulab-pxa270-2.6.16/.mtn2git_empty0
-rw-r--r--packages/linux/compulab-pxa270-2.6.16/defconfig1312
-rw-r--r--packages/linux/compulab-pxa270-2.6.16/linux-2.6.16.patch9302
-rw-r--r--packages/linux/compulab-pxa270_2.6.16.bb72
-rw-r--r--packages/linux/corgi-kernel-2.4-embedix.bb3
-rw-r--r--packages/linux/devkitidp-pxa255-2.6.19/.mtn2git_empty0
-rw-r--r--packages/linux/devkitidp-pxa255-2.6.19/defconfig1156
-rw-r--r--packages/linux/devkitidp-pxa255-2.6.19/linux-2.6.19_devkitidp1.patch1586
-rw-r--r--packages/linux/devkitidp-pxa255_2.6.19.bb39
-rw-r--r--packages/linux/em-x270-2.6.23/.mtn2git_empty0
-rw-r--r--packages/linux/em-x270-2.6.23/defconfig1354
-rw-r--r--packages/linux/em-x270-2.6.23/em-x270.patch12063
-rw-r--r--packages/linux/em-x270_2.6.23.bb29
-rw-r--r--packages/linux/ep93xx-kernel/.mtn2git_empty0
-rw-r--r--packages/linux/ep93xx-kernel/defconfig1176
-rw-r--r--packages/linux/ep93xx-kernel/derevo6.diff4434
-rw-r--r--packages/linux/ep93xx-kernel/dynamic-phys-offset-2.6.20-rc7.diff199
-rw-r--r--packages/linux/ep93xx-kernel/eabi-enums.patch16
-rw-r--r--packages/linux/ep93xx-kernel/linux-2.6.15-ep93xx-gao19.diff43746
-rw-r--r--packages/linux/ep93xx-kernel_2.6.17+2.6.18-rc1.bb56
-rw-r--r--packages/linux/ep93xx-kernel_2.6.19+2.6.20-rc7.bb56
-rw-r--r--packages/linux/files/.mtn2git_empty0
-rw-r--r--packages/linux/files/ipaq-hal.init14
-rw-r--r--packages/linux/files/ir240_sys_max_tx-2.diff110
-rw-r--r--packages/linux/files/ir241_qos_param-2.diff164
-rw-r--r--packages/linux/files/iw240_we15-6.diff399
-rw-r--r--packages/linux/files/iw240_we18-5.diff421
-rw-r--r--packages/linux/files/iw241_we16-6.diff667
-rw-r--r--packages/linux/files/iw249_we16-6.diff670
-rw-r--r--packages/linux/files/iw249_we17-13.diff768
-rw-r--r--packages/linux/files/iw_handlers.w13-5.diff1513
-rw-r--r--packages/linux/files/iw_handlers.w14-5.diff838
-rw-r--r--packages/linux/files/linux-2.4-cpufreq.patch20
-rw-r--r--packages/linux/files/linux-2.4-mmc-debugging.patch15
-rw-r--r--packages/linux/files/linux-2.4-no-short-loads.patch18
-rw-r--r--packages/linux/files/linux-2.4-usb-gadget.patch29506
-rw-r--r--packages/linux/files/linux-2.4.18-list_move.patch32
-rw-r--r--packages/linux/files/mipv6-1.1-v2.4.25.patch19832
-rw-r--r--packages/linux/files/mipv6-1.1-v2.4.27.patch19736
-rw-r--r--packages/linux/files/usb-gadget-ether-compat.patch30
-rw-r--r--packages/linux/fsg3-kernel_2.6.18.bb22
-rw-r--r--packages/linux/gumstix-2.6.5-gnalm1-gum0/.mtn2git_empty0
-rw-r--r--packages/linux/gumstix-2.6.5-gnalm1-gum0/defconfig777
-rw-r--r--packages/linux/gumstix-2.6.5-gnalm1-gum0/linux-2.6.5-gnalm1.patch20991
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/.mtn2git_empty0
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/270-usb-gadget-udc.patch2739
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/arch-config.patch62
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/bkpxa-pxa-cpu.patch117
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/bkpxa-pxa-cpufreq.patch403
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/board-init.patch81
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/bugfix-i2c-include.patch12
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/bugfix-mmc-clock.patch14
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/bugfix-pxa-cpufreq.patch64
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/bugfix-serial-interrupt.patch25
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/bugfix-serial-register-status.patch69
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/compact-flash.patch287
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/compile-fix-pxa_cpufreq.patch13
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/cpufreq-better-freqs.patch53
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/cpufreq-fixup.patch26
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/cpufreq-ondemand-by-default.patch42
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/disable-uncompress-message.patch32
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/ethernet-config.patch26
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/flash.patch171
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-asoc.patch224
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-custom-connex/.mtn2git_empty0
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-custom-connex/defconfig1619
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-custom-connex/defconfig-nofb1619
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-custom-verdex/.mtn2git_empty0
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-custom-verdex/defconfig1791
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-custom-verdex/defconfig-nofb1791
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-fb-logo.patch10455
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-pxa270-mmc.patch33
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/gumstix-pxa270-usb-host.patch366
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/header.patch170
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/mach-types-fix.patch13
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/misalignment-handling.patch38
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/mmc-card-detect.patch80
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/modular-init-bluetooth.patch108
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/modular-init-smc91x.patch203
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/modular-init-usb-gadget.patch106
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/pcm-gcc-411-bugfix.patch60
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/proc-gpio.patch348
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/pxa-regs-additions.patch28
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/pxa-regs-fixup.patch12
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/pxa2xx_udc.patch65
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/pxafb-18bpp-mode.patch433
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/pxafb-definition.patch180
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/serial-divisor.patch31
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/serial-ether-addr.patch62
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/smc-ether-addr.patch62
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/smc911x-fixup.patch392
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/tsc2003-config.diff31
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/tsc2003.c699
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/uImage-in-own-partition.patch56
-rw-r--r--packages/linux/gumstix-kernel-2.6.21/ucb1400-ac97-audio.patch309
-rw-r--r--packages/linux/gumstix-kernel_2.6.21.bb54
-rw-r--r--packages/linux/gumstix-linux.inc74
-rw-r--r--packages/linux/gumstix_2.6.5-gnalm1-gum0.bb25
-rw-r--r--packages/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh40/.mtn2git_empty0
-rw-r--r--packages/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh40/defconfig-h3900