summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-04-10 13:24:47 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2011-04-10 14:43:41 +0200
commit89500c583e0f1dc1b4ffdf72914e08e505e427e0 (patch)
treeb073036cc61aa34ca5ac9eec4d617366e0dcb3d5 /meta-oe/recipes-core
parente66079da37992abd54486488aa06a99bf7a4198c (diff)
downloadmeta-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.bb32
-rw-r--r--meta-oe/recipes-core/tasks/task-cli-tools.bb52
-rw-r--r--meta-oe/recipes-core/tasks/task-x11.bb43
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 @@
1DESCRIPTION = "Configuration files for online package repositories aka feeds"
2PR = "r1"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
5
6DISTRO_FEED_PREFIX ?= "remote"
7DISTRO_FEED_URI ?= "http://my-distribution.example/remote-feed/"
8
9do_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}
15do_install () {
16 install -d ${D}${sysconfdir}/opkg
17 install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/
18}
19
20PACKAGE_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
32CONFFILES_${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 @@
1DESCRIPTION = "A set of useful command line tools"
2DESCRIPTION_${PN}-debug = "A set of command line tools useful for debugging"
3SECTION = "console"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
6PV = "1.0"
7PR = "r18"
8
9inherit task
10
11PACKAGES += "${PN}-debug"
12
13def get_ltrace(bb, d):
14 if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'sh4', 'sh3' ] :
15 return ""
16 return "ltrace"
17
18RDEPENDS_${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
37RDEPENDS_${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 @@
1DESCRIPTION = "The X Window System -- install this task to get a client/server based display multiplexer."
2SECTION = "x11/server"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${TOPDIR}/meta-shr/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
5PV = "1.0"
6PR = "r7"
7
8# WORK IN PROGRESS
9
10inherit task
11
12PACKAGES += "\
13 ${PN}-server \
14 ${PN}-utils \
15"
16
17RRECOMMENDS_${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
24XSERVER ?= "xserver-kdrive-fbdev"
25XSERVER_COMMON ?= "xserver-kdrive-common"
26XSERVER_COMMON_shr = "xserver-common"
27
28# This is also the reason why we have to make this package machine specific :/
29PACKAGE_ARCH_${PN}-server = "${MACHINE_ARCH}"
30
31RDEPENDS_${PN}-server = "\
32 ${XSERVER} \
33"
34
35RDEPENDS_${PN}-utils = "\
36 ${XSERVER_COMMON} \
37 xserver-nodm-init \
38 xauth \
39 xhost \
40 xset \
41 xrandr \
42"
43