summaryrefslogtreecommitdiff
path: root/packages/addons/devshell.bb
blob: 9ac6821e0e30faec7f0752712e5ae0b8d9403124 (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
73
74
75
DESCRIPTION = "Runs a shell in an environment as emitted by BitBake to execute tasks"
LICENSE = "GPL"
PR = "r3"

inherit autotools pkgconfig

do_configure() {
	:
}

def devshell_emit_env(o, d, all=False, funcwhitelist=None):
    """Emits all items in the data store in a format such that it can be sourced by a shell."""

    import bb
    import bb.data

    env = bb.data.keys(d)

    for e in env:
        if bb.data.getVarFlag(e, "func", d):
            continue
        bb.data.emit_var(e, o, d, all) and o.write('\n')

    for e in env:
        if not bb.data.getVarFlag(e, "func", d):
            continue
        if not funcwhitelist:
            bb.data.emit_var(e, o, d) and o.write('\n')
            continue
        for i in funcwhitelist:
            if e.startswith(i):
                bb.data.emit_var(e, o, d) and o.write('\n')
                break

python do_compile() {
	import os
	import os.path

	workdir = bb.data.getVar('WORKDIR', d, 1)
	shellfile = os.path.join(workdir, bb.data.expand("${TARGET_PREFIX}${DISTRO}-${MACHINE}-devshell", d))

	f = open(shellfile, "w")

	# emit variables and shell functions
        devshell_emit_env(f, d, False, ["die", "oe", "autotools_do_configure"])

	f.close()
}

do_install() {
	:
}

do_stage() {
	:
}

do_deploy() {
	shellfile="${TARGET_PREFIX}${DISTRO}-${MACHINE}-devshell"

	cd ${WORKDIR}

	cp $shellfile tmpfile
	echo "#!/bin/bash --rcfile" > $shellfile
	sed -e "s:${S}:.:g" -e "s:exit 1:true:" tmpfile >> $shellfile

	echo "export PS1='[OE::${TARGET_PREFIX}${DISTRO}-${MACHINE}]:\w\$ '" >> $shellfile
	echo "alias ./configure=oe_runconf" >> $shellfile
	echo "alias make=oe_runmake" >> $shellfile

	mkdir -p ${DEPLOY_DIR}/addons
	install -m 755 $shellfile ${DEPLOY_DIR}/addons
}

addtask deploy after do_install before do_package
class='none' style='width: 100.0%;'/> -rw-r--r--recipes/apache2/apache2-2.2.14/dftables-makefile-patch10
-rw-r--r--recipes/apache2/apache2-2.2.14/server-makefile-patch11
-rw-r--r--recipes/apache2/apache2-native_2.2.14.bb39
-rw-r--r--recipes/apache2/apache2_2.2.14.bb114
-rw-r--r--recipes/asciidoc/asciidoc_8.5.1.bb20
-rw-r--r--recipes/asio/asio.inc14
-rw-r--r--recipes/asio/asio_1.1.1.bb19
-rw-r--r--recipes/asio/asio_1.4.1.bb3
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91cap9adk/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9260ek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9261ek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9263ek/defconfig113
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9g20ek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9g45ek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9rlek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9xeek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/defconfig91
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch22
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp/defconfig91
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp/sdram_slow_slew_rate.patch15
-rw-r--r--recipes/at91bootstrap/at91bootstrap.inc1
-rw-r--r--recipes/at91bootstrap/at91bootstrap_2.13.bb15
-rw-r--r--recipes/automake/automake-native_1.11.1.bb5
-rw-r--r--recipes/automake/automake_1.11.1.bb4
-rw-r--r--recipes/balsa/balsa-2.4.1/gnome-icon-theme.patch27
-rw-r--r--recipes/balsa/balsa-2.4.2/libbalsa-gpe-corruption.patch14
-rw-r--r--recipes/balsa/balsa_2.4.1.bb86
-rw-r--r--recipes/balsa/balsa_2.4.2.bb93
-rw-r--r--recipes/base-files/base-files/corecdp/issue8
-rw-r--r--recipes/base-files/base-files/corecdp/issue.net8
-rw-r--r--recipes/base-files/base-files/corecdp/profile34
-rwxr-xr-x[-rw-r--r--]recipes/base-files/base-files/jornada6xx/fstab6
-rwxr-xr-xrecipes/base-files/base-files/jornada6xx/issue2
-rwxr-xr-xrecipes/base-files/base-files/jornada6xx/issue.net2
-rwxr-xr-xrecipes/base-files/base-files/jornada6xx/profile34
-rw-r--r--recipes/base-files/base-files/mtcdp-embedded/fstab12
-rw-r--r--recipes/base-files/base-files/mtcdp-embedded/profile34
-rw-r--r--recipes/base-files/base-files/mtcdp/fstab12
-rw-r--r--recipes/base-files/base-files/mtcdp/profile34
-rw-r--r--recipes/base-files/base-files_3.0.14.bb17
-rw-r--r--recipes/binutils/binutils-2.18/binutils-powerpc-ld-segfault.patch13
-rw-r--r--recipes/binutils/binutils-2.20/binutils-2.16.91.0.6-objcopy-rename-errorcode.patch39
-rw-r--r--recipes/binutils/binutils-2.20/binutils-arm-pr7093.patch19
-rw-r--r--recipes/binutils/binutils-2.20/binutils-powerpc-pr11088.patch275
-rw-r--r--recipes/binutils/binutils-2.20/binutils_unexport_LD_LIBRARY_PATH_for_CC_FOR_BUILD.patch95
-rw-r--r--recipes/binutils/binutils-2.20/uclibc-segfault.patch23
-rw-r--r--recipes/binutils/binutils_2.18.bb7
-rw-r--r--recipes/binutils/binutils_2.20.bb9
-rw-r--r--recipes/blackbox/blackbox_0.70.1.bb3
-rw-r--r--recipes/blipomoko/blipomoko_git.bb17
-rw-r--r--recipes/blktool/blktool_4.bb5
-rw-r--r--recipes/blueman/blueman_1.10.bb27
-rw-r--r--recipes/blueman/blueman_1.21.bb31
-rw-r--r--recipes/bluez/bluez4.inc16
-rw-r--r--recipes/bluez/bluez4_4.56.bb2
-rw-r--r--recipes/bluez/bluez4_4.59.bb16
-rw-r--r--recipes/bluez/obexd_0.19.bb10
-rw-r--r--recipes/bluez/obexd_0.21.bb10
-rw-r--r--recipes/boost/boost-14x.inc3
-rw-r--r--recipes/boost/boost_1.36.0.bb5
-rw-r--r--recipes/boost/boost_1.41.0.bb16
-rw-r--r--recipes/boost/files/1.41.0_uclibc.patch13
-rw-r--r--recipes/boost/files/gcc-44.diff304
-rw-r--r--recipes/boost/files/sscanf.patch13
-rw-r--r--recipes/bootchart-lite/bootchart-lite_svn.bb4
-rw-r--r--recipes/bt-configure/bt-configure_git.bb19
-rw-r--r--recipes/bt-gps/bt-gps.bb27
-rw-r--r--recipes/busybox/busybox-1.13.2/corecdp/defconfig873
-rw-r--r--recipes/busybox/busybox-1.13.2/corecdp/syslog.conf9
-rw-r--r--recipes/busybox/busybox-1.15.3/B921600.patch13
-rw-r--r--recipes/busybox/busybox-1.15.3/angstrom/defconfig873
-rw-r--r--recipes/busybox/busybox-1.15.3/defconfig873
-rw-r--r--recipes/busybox/busybox-1.15.3/fdisk_lineedit_segfault.patch12
-rw-r--r--recipes/busybox/busybox-1.15.3/fix31
-rw-r--r--recipes/busybox/busybox-1.15.3/get_header_tar.patch11
-rw-r--r--recipes/busybox/busybox-1.15.3/kaeilos/defconfig855
-rw-r--r--recipes/busybox/busybox-1.15.3/micro/defconfig869
-rw-r--r--recipes/busybox/busybox-1.15.3/r24785.patch14
-rw-r--r--recipes/busybox/busybox-1.15.3/slugos/defconfig869
-rw-r--r--recipes/busybox/busybox-1.15.3/udhcpc-fix-nfsroot.patch47
-rw-r--r--recipes/busybox/busybox-1.15.3/udhcpscript.patch13
-rw-r--r--recipes/busybox/busybox-1.15.3/xargs-double-size.patch13
-rw-r--r--recipes/busybox/busybox.inc8
-rw-r--r--recipes/busybox/busybox_1.14.3.bb5
-rw-r--r--recipes/busybox/busybox_1.15.3.bb42
-rw-r--r--recipes/bzip2/bzip2-1.0.5/bzip2-1.0.5-autoconfiscated.patch286
-rw-r--r--recipes/bzip2/bzip2-full-native-1.0.5/Makefile.am41
-rw-r--r--recipes/bzip2/bzip2-full-native-1.0.5/configure.ac14
-rw-r--r--recipes/bzip2/bzip2-full-native_1.0.5.bb22
-rw-r--r--recipes/bzip2/bzip2_1.0.5.bb32
-rw-r--r--recipes/cairo/cairomm_1.8.2.bb2
-rw-r--r--recipes/calibrator/calibrator_svn.bb2
-rw-r--r--recipes/callrec/callrec_svn.bb70
-rw-r--r--recipes/cbrpager/cbrpager.inc20
-rw-r--r--recipes/cbrpager/cbrpager_0.9.14.bb21
-rw-r--r--recipes/cbrpager/cbrpager_0.9.20.bb3
-rw-r--r--recipes/cdparanoia/cdparanoia/Makefile.in.patch (renamed from recipes/cdparanoia/files/Makefile.in.patch)0
-rw-r--r--recipes/cdparanoia/cdparanoia/Makefile.patch (renamed from recipes/cdparanoia/files/Makefile.patch)0
-rw-r--r--recipes/cdparanoia/cdparanoia/cdparanoia-III-10.2-privatefix.patch561
-rw-r--r--recipes/cdparanoia/cdparanoia/configure.in.patch13
-rw-r--r--recipes/cdparanoia/cdparanoia/fixes.patch (renamed from recipes/cdparanoia/files/fixes.patch)0
-rw-r--r--recipes/cdparanoia/cdparanoia/fixes10.patch (renamed from recipes/cdparanoia/files/fixes10.patch)0
-rw-r--r--recipes/cdparanoia/cdparanoia/interface_Makefile.in.patch (renamed from recipes/cdparanoia/files/interface_Makefile.in.patch)0
-rw-r--r--recipes/cdparanoia/cdparanoia/paranoia_Makefile.in.patch (renamed from recipes/cdparanoia/files/paranoia_Makefile.in.patch)0
-rw-r--r--recipes/cdparanoia/cdparanoia_10.2.bb37
-rw-r--r--recipes/cdparanoia/cdparanoia_9.8alpha.bb34
-rw-r--r--recipes/cdparanoia/cdparanoia_svn.bb7
-rw-r--r--recipes/cellhunter/cellhunter_0.5.0.bb27
-rw-r--r--recipes/chicken/chicken-4.2.0/translator-cross.patch11
-rw-r--r--recipes/chicken/chicken-cross_4.2.0.bb26
-rw-r--r--recipes/chicken/chicken-cross_4.2.10.bb27
-rw-r--r--recipes/chicken/chicken-native_4.2.0.bb7
-rw-r--r--recipes/chicken/chicken-snapshot.inc13