diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-04-10 13:24:47 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-04-10 14:43:41 +0200 |
commit | 89500c583e0f1dc1b4ffdf72914e08e505e427e0 (patch) | |
tree | b073036cc61aa34ca5ac9eec4d617366e0dcb3d5 /meta-oe/recipes-core | |
parent | e66079da37992abd54486488aa06a99bf7a4198c (diff) | |
download | meta-openembedded-89500c583e0f1dc1b4ffdf72914e08e505e427e0.tar.gz |
recipes,classes: import a lot of recipes from meta-shr
* tested on shr-lite-image for om-gta02 and nokia900 (with meta-shr layer)
Diffstat (limited to 'meta-oe/recipes-core')
-rw-r--r-- | meta-oe/recipes-core/meta/distro-feed-configs.bb | 32 | ||||
-rw-r--r-- | meta-oe/recipes-core/tasks/task-cli-tools.bb | 52 | ||||
-rw-r--r-- | meta-oe/recipes-core/tasks/task-x11.bb | 43 |
3 files changed, 127 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/meta/distro-feed-configs.bb b/meta-oe/recipes-core/meta/distro-feed-configs.bb new file mode 100644 index 000000000..4da2b1441 --- /dev/null +++ b/meta-oe/recipes-core/meta/distro-feed-configs.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | DESCRIPTION = "Configuration files for online package repositories aka feeds" | ||
2 | PR = "r1" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | |||
6 | DISTRO_FEED_PREFIX ?= "remote" | ||
7 | DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/" | ||
8 | |||
9 | do_compile() { | ||
10 | mkdir -p ${S}/${sysconfdir}/opkg | ||
11 | for feed in all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}; do | ||
12 | echo "src/gz ${DISTRO_FEED_PREFIX}-${feed} ${DISTRO_FEED_URI}/${feed}" > ${S}/${sysconfdir}/opkg/${feed}-feed.conf | ||
13 | done | ||
14 | } | ||
15 | do_install () { | ||
16 | install -d ${D}${sysconfdir}/opkg | ||
17 | install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ | ||
18 | } | ||
19 | |||
20 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
21 | |||
22 | #def distro_feed_configs(d): | ||
23 | # import bb | ||
24 | # parchs = bb.data.getVar( "PACKAGE_EXTRA_ARCHS", d, 1 ).split() | ||
25 | # march = bb.data.getVar( "MACHINE_ARCH", d, 1 ).split() | ||
26 | # archs = [ "all" ] + parchs + march | ||
27 | # confs = [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in archs ] | ||
28 | # return " ".join( confs ) | ||
29 | # | ||
30 | #CONFFILES_${PN} += '${@distro_feed_configs(d)}' | ||
31 | |||
32 | CONFFILES_${PN} += '${@ " ".join( [ ( "${sysconfdir}/opkg/%s-feed.conf" % feed ) for feed in "all ${PACKAGE_EXTRA_ARCHS} ${MACHINE_ARCH}".split() ] ) }' | ||
diff --git a/meta-oe/recipes-core/tasks/task-cli-tools.bb b/meta-oe/recipes-core/tasks/task-cli-tools.bb new file mode 100644 index 000000000..c271f711e --- /dev/null +++ b/meta-oe/recipes-core/tasks/task-cli-tools.bb | |||
@@ -0,0 +1,52 @@ | |||
1 | DESCRIPTION = "A set of useful command line tools" | ||
2 | DESCRIPTION_${PN}-debug = "A set of command line tools useful for debugging" | ||
3 | SECTION = "console" | ||
4 | LICENSE = "MIT" | ||
5 | LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
6 | PV = "1.0" | ||
7 | PR = "r18" | ||
8 | |||
9 | inherit task | ||
10 | |||
11 | PACKAGES += "${PN}-debug" | ||
12 | |||
13 | def get_ltrace(bb, d): | ||
14 | if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'sh4', 'sh3' ] : | ||
15 | return "" | ||
16 | return "ltrace" | ||
17 | |||
18 | RDEPENDS_${PN} = "\ | ||
19 | dbus-daemon-proxy \ | ||
20 | dosfstools \ | ||
21 | htop \ | ||
22 | iptables \ | ||
23 | lsof \ | ||
24 | mbuffer \ | ||
25 | mdbus2 \ | ||
26 | mtd-utils \ | ||
27 | mterm2 \ | ||
28 | nano \ | ||
29 | nfs-utils-client \ | ||
30 | nmon \ | ||
31 | powertop \ | ||
32 | screen \ | ||
33 | socat \ | ||
34 | sysstat \ | ||
35 | " | ||
36 | |||
37 | RDEPENDS_${PN}-debug = "\ | ||
38 | evtest \ | ||
39 | devmem2 \ | ||
40 | i2c-tools \ | ||
41 | gdb \ | ||
42 | ${@get_ltrace(bb, d)} \ | ||
43 | mkdump \ | ||
44 | mioctl \ | ||
45 | procps \ | ||
46 | pxaregs \ | ||
47 | s3c24xx-gpio \ | ||
48 | s3c64xx-gpio \ | ||
49 | serial-forward \ | ||
50 | strace \ | ||
51 | tcpdump \ | ||
52 | " | ||
diff --git a/meta-oe/recipes-core/tasks/task-x11.bb b/meta-oe/recipes-core/tasks/task-x11.bb new file mode 100644 index 000000000..208b16859 --- /dev/null +++ b/meta-oe/recipes-core/tasks/task-x11.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | DESCRIPTION = "The X Window System -- install this task to get a client/server based display multiplexer." | ||
2 | SECTION = "x11/server" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | PV = "1.0" | ||
6 | PR = "r7" | ||
7 | |||
8 | # WORK IN PROGRESS | ||
9 | |||
10 | inherit task | ||
11 | |||
12 | PACKAGES += "\ | ||
13 | ${PN}-server \ | ||
14 | ${PN}-utils \ | ||
15 | " | ||
16 | |||
17 | RRECOMMENDS_${PN} = "\ | ||
18 | ${PN}-server \ | ||
19 | ${PN}-utils \ | ||
20 | " | ||
21 | |||
22 | # Some machines don't set a *runtime* provider for X, so default to Xfbdev here | ||
23 | # virtual/xserver won't work, since the kdrive recipes will build multiple xserver packages | ||
24 | XSERVER ?= "xserver-kdrive-fbdev" | ||
25 | XSERVER_COMMON ?= "xserver-kdrive-common" | ||
26 | XSERVER_COMMON_shr = "xserver-common" | ||
27 | |||
28 | # This is also the reason why we have to make this package machine specific :/ | ||
29 | PACKAGE_ARCH_${PN}-server = "${MACHINE_ARCH}" | ||
30 | |||
31 | RDEPENDS_${PN}-server = "\ | ||
32 | ${XSERVER} \ | ||
33 | " | ||
34 | |||
35 | RDEPENDS_${PN}-utils = "\ | ||
36 | ${XSERVER_COMMON} \ | ||
37 | xserver-nodm-init \ | ||
38 | xauth \ | ||
39 | xhost \ | ||
40 | xset \ | ||
41 | xrandr \ | ||
42 | " | ||
43 | |||