diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-20 14:18:45 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-20 14:18:45 +0100 |
commit | 79a4501a2ead92cb512eef0bd3dfe133d0e5d799 (patch) | |
tree | 5f82f1971c81034799bd5ab330e54b281020fc24 /meta/recipes-core | |
parent | 03d9669cbcc35a49120b9cc277723bccd93f4cf3 (diff) | |
download | poky-79a4501a2ead92cb512eef0bd3dfe133d0e5d799.tar.gz |
Complete packages -> recipes transition
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb | 43 | ||||
-rw-r--r-- | meta/recipes-core/images/poky-image-core.bb | 9 | ||||
-rw-r--r-- | meta/recipes-core/tasks/task-poky-nfs.bb | 24 | ||||
-rw-r--r-- | meta/recipes-core/tasks/task-poky-sdk.bb | 84 | ||||
-rw-r--r-- | meta/recipes-core/tasks/task-poky-standalone-sdk-target.bb | 14 | ||||
-rw-r--r-- | meta/recipes-core/tasks/task-poky-tools.bb | 77 | ||||
-rw-r--r-- | meta/recipes-core/tasks/task-sdk-host.bb | 32 |
7 files changed, 283 insertions, 0 deletions
diff --git a/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb b/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb new file mode 100644 index 0000000000..f36b38a7e5 --- /dev/null +++ b/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | DESCRIPTION = "Poky example feed configuration" | ||
2 | LICENSE = "MIT" | ||
3 | |||
4 | PR = "r1" | ||
5 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
6 | |||
7 | #FEEDNAMEPREFIX ?= "INVALID" | ||
8 | #FEEDURIPREFIX ?= "INVALID" | ||
9 | |||
10 | do_compile() { | ||
11 | mkdir -p ${S}/${sysconfdir}/opkg/ | ||
12 | |||
13 | archconf=${S}/${sysconfdir}/opkg/arch.conf | ||
14 | |||
15 | rm -f $archconf | ||
16 | ipkgarchs="${PACKAGE_ARCHS}" | ||
17 | priority=1 | ||
18 | for arch in $ipkgarchs; do | ||
19 | echo "arch $arch $priority" >> $archconf | ||
20 | priority=$(expr $priority + 5) | ||
21 | done | ||
22 | |||
23 | basefeedconf=${S}/${sysconfdir}/opkg/base-feeds.conf | ||
24 | |||
25 | rm -f $basefeedconf | ||
26 | touch $basefeedconf | ||
27 | |||
28 | #for arch in $ipkgarchs; do | ||
29 | # echo "src/gz ${FEEDNAMEPREFIX}-$arch http://pokylinux.org/${FEEDURIPREFIX}$arch" >> $basefeedconf | ||
30 | #done | ||
31 | } | ||
32 | |||
33 | |||
34 | do_install () { | ||
35 | install -d ${D}${sysconfdir}/opkg | ||
36 | install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ | ||
37 | } | ||
38 | |||
39 | FILES_${PN} = "${sysconfdir}/opkg/ " | ||
40 | |||
41 | CONFFILES_${PN} += "${sysconfdir}/opkg/base-feeds.conf \ | ||
42 | ${sysconfdir}/opkg/arch.conf" | ||
43 | |||
diff --git a/meta/recipes-core/images/poky-image-core.bb b/meta/recipes-core/images/poky-image-core.bb new file mode 100644 index 0000000000..c232ccdc54 --- /dev/null +++ b/meta/recipes-core/images/poky-image-core.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | # | ||
2 | # Copyright (C) 2007 OpenedHand Ltd. | ||
3 | # | ||
4 | |||
5 | IMAGE_FEATURES += "apps-console-core ${X11_IMAGE_FEATURES}" | ||
6 | |||
7 | LICENSE = "MIT" | ||
8 | |||
9 | inherit poky-image | ||
diff --git a/meta/recipes-core/tasks/task-poky-nfs.bb b/meta/recipes-core/tasks/task-poky-nfs.bb new file mode 100644 index 0000000000..b929bbe82a --- /dev/null +++ b/meta/recipes-core/tasks/task-poky-nfs.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 OpenedHand Ltd. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "NFS tasks for Poky" | ||
6 | LICENSE = "MIT" | ||
7 | PR = "r0" | ||
8 | |||
9 | PACKAGES = "\ | ||
10 | task-poky-nfs-server \ | ||
11 | task-poky-nfs-server-dbg \ | ||
12 | task-poky-nfs-server-dev \ | ||
13 | " | ||
14 | |||
15 | ALLOW_EMPTY = "1" | ||
16 | |||
17 | RDEPENDS_task-poky-nfs-server = "\ | ||
18 | nfs-utils" | ||
19 | |||
20 | # rpcinfo can be useful but only with glibc images | ||
21 | GLIBC_DEPENDENCIES = "glibc-utils" | ||
22 | |||
23 | RRECOMMENDS_task-poky-nfs-server_append_linux = "${GLIBC_DEPENDENCIES}" | ||
24 | RRECOMMENDS_task-poky-nfs-server_append_linux-gnueabi = "${GLIBC_DEPENDENCIES}" \ No newline at end of file | ||
diff --git a/meta/recipes-core/tasks/task-poky-sdk.bb b/meta/recipes-core/tasks/task-poky-sdk.bb new file mode 100644 index 0000000000..021878cf06 --- /dev/null +++ b/meta/recipes-core/tasks/task-poky-sdk.bb | |||
@@ -0,0 +1,84 @@ | |||
1 | # | ||
2 | # Copyright (C) 2007 OpenedHand Ltd. | ||
3 | # | ||
4 | |||
5 | DESCRIPTON = "Software Development Tasks for OpenedHand Poky" | ||
6 | LICENSE = "MIT" | ||
7 | DEPENDS = "task-poky" | ||
8 | PR = "r5" | ||
9 | |||
10 | ALLOW_EMPTY = "1" | ||
11 | #PACKAGEFUNCS =+ 'generate_sdk_pkgs' | ||
12 | |||
13 | PACKAGES = "\ | ||
14 | task-poky-sdk \ | ||
15 | task-poky-sdk-dbg \ | ||
16 | task-poky-sdk-dev" | ||
17 | |||
18 | RDEPENDS_task-poky-sdk = "\ | ||
19 | autoconf \ | ||
20 | automake \ | ||
21 | binutils \ | ||
22 | binutils-symlinks \ | ||
23 | coreutils \ | ||
24 | cpp \ | ||
25 | cpp-symlinks \ | ||
26 | diffutils \ | ||
27 | gcc \ | ||
28 | gcc-symlinks \ | ||
29 | g++ \ | ||
30 | g++-symlinks \ | ||
31 | gettext \ | ||
32 | make \ | ||
33 | intltool \ | ||
34 | libstdc++ \ | ||
35 | libstdc++-dev \ | ||
36 | libtool \ | ||
37 | perl-module-re \ | ||
38 | perl-module-text-wrap \ | ||
39 | pkgconfig \ | ||
40 | findutils \ | ||
41 | quilt \ | ||
42 | less \ | ||
43 | distcc" | ||
44 | |||
45 | #python generate_sdk_pkgs () { | ||
46 | # poky_pkgs = read_pkgdata('task-poky', d)['PACKAGES'] | ||
47 | # pkgs = bb.data.getVar('PACKAGES', d, 1).split() | ||
48 | # for pkg in poky_pkgs.split(): | ||
49 | # newpkg = pkg.replace('task-poky', 'task-poky-sdk') | ||
50 | # | ||
51 | # # for each of the task packages, add a corresponding sdk task | ||
52 | # pkgs.append(newpkg) | ||
53 | # | ||
54 | # # for each sdk task, take the rdepends of the non-sdk task, and turn | ||
55 | # # that into rrecommends upon the -dev versions of those, not unlike | ||
56 | # # the package depchain code | ||
57 | # spkgdata = read_subpkgdata(pkg, d) | ||
58 | # | ||
59 | # rdepends = explode_deps(spkgdata.get('RDEPENDS_%s' % pkg) or '') | ||
60 | # rreclist = [] | ||
61 | # | ||
62 | # for depend in rdepends: | ||
63 | # split_depend = depend.split(' (') | ||
64 | # name = split_depend[0].strip() | ||
65 | # if packaged('%s-dev' % name, d): | ||
66 | # rreclist.append('%s-dev' % name) | ||
67 | # else: | ||
68 | # deppkgdata = read_subpkgdata(name, d) | ||
69 | # rdepends2 = explode_deps(deppkgdata.get('RDEPENDS_%s' % name) or '') | ||
70 | # for depend in rdepends2: | ||
71 | # split_depend = depend.split(' (') | ||
72 | # name = split_depend[0].strip() | ||
73 | # if packaged('%s-dev' % name, d): | ||
74 | # rreclist.append('%s-dev' % name) | ||
75 | # | ||
76 | # oldrrec = bb.data.getVar('RRECOMMENDS_%s' % newpkg, d) or '' | ||
77 | # bb.data.setVar('RRECOMMENDS_%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist), d) | ||
78 | # # bb.note('RRECOMMENDS_%s = "%s"' % (newpkg, bb.data.getVar('RRECOMMENDS_%s' % newpkg, d))) | ||
79 | # | ||
80 | # # bb.note('pkgs is %s' % pkgs) | ||
81 | # bb.data.setVar('PACKAGES', ' '.join(pkgs), d) | ||
82 | #} | ||
83 | # | ||
84 | #PACKAGES_DYNAMIC = "task-poky-sdk-*" | ||
diff --git a/meta/recipes-core/tasks/task-poky-standalone-sdk-target.bb b/meta/recipes-core/tasks/task-poky-standalone-sdk-target.bb new file mode 100644 index 0000000000..4aa318881c --- /dev/null +++ b/meta/recipes-core/tasks/task-poky-standalone-sdk-target.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | DESCRIPTION = "Target packages for the standalone SDK" | ||
2 | PR = "r6" | ||
3 | LICENSE = "MIT" | ||
4 | ALLOW_EMPTY = "1" | ||
5 | |||
6 | PACKAGES = "${PN} ${PN}-dbg" | ||
7 | |||
8 | RDEPENDS_${PN} = "\ | ||
9 | libgcc \ | ||
10 | libgcc-dev \ | ||
11 | libstdc++ \ | ||
12 | libstdc++-dev \ | ||
13 | ${LIBC_DEPENDENCIES} \ | ||
14 | " | ||
diff --git a/meta/recipes-core/tasks/task-poky-tools.bb b/meta/recipes-core/tasks/task-poky-tools.bb new file mode 100644 index 0000000000..e5d4200eb1 --- /dev/null +++ b/meta/recipes-core/tasks/task-poky-tools.bb | |||
@@ -0,0 +1,77 @@ | |||
1 | # | ||
2 | # Copyright (C) 2008 OpenedHand Ltd. | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Tools tasks for Poky" | ||
6 | LICENSE = "MIT" | ||
7 | PR = "r6" | ||
8 | |||
9 | PACKAGES = "\ | ||
10 | task-poky-tools-debug \ | ||
11 | task-poky-tools-debug-dbg \ | ||
12 | task-poky-tools-debug-dev \ | ||
13 | task-poky-tools-profile \ | ||
14 | task-poky-tools-profile-dbg \ | ||
15 | task-poky-tools-profile-dev \ | ||
16 | task-poky-tools-testapps \ | ||
17 | task-poky-tools-testapps-dbg \ | ||
18 | task-poky-tools-testapps-dev \ | ||
19 | " | ||
20 | |||
21 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
22 | |||
23 | ALLOW_EMPTY = "1" | ||
24 | |||
25 | # kexec-tools doesn't work on Mips | ||
26 | KEXECTOOLS ?= "kexec-tools" | ||
27 | KEXECTOOLS_mips ?= "" | ||
28 | KEXECTOOLS_mipsel ?= "" | ||
29 | KEXECTOOLS_powerpc ?= "" | ||
30 | |||
31 | RDEPENDS_task-poky-tools-debug = "\ | ||
32 | gdb \ | ||
33 | gdbserver \ | ||
34 | tcf-agent \ | ||
35 | strace" | ||
36 | |||
37 | RDEPENDS_task-poky-tools-profile = "\ | ||
38 | oprofile \ | ||
39 | oprofileui-server \ | ||
40 | powertop \ | ||
41 | latencytop \ | ||
42 | lttng-control \ | ||
43 | lttng-viewer" | ||
44 | |||
45 | RRECOMMENDS_task-poky-tools-profile = "\ | ||
46 | perf \ | ||
47 | trace-cmd \ | ||
48 | kernel-module-oprofile" | ||
49 | |||
50 | # exmap-console | ||
51 | # exmap-server | ||
52 | |||
53 | # At present we only build lttng-ust on | ||
54 | # qemux86/qemux86-64/qemuppc/emenlow/netbook since upstream liburcu | ||
55 | # (which is required by lttng-ust) may not build on other platforms, like | ||
56 | # MIPS and qemu ARMv5te that poky uses now. | ||
57 | RDEPENDS_task-poky-tools-profile_append_qemux86 = " valgrind lttng-ust" | ||
58 | RDEPENDS_task-poky-tools-profile_append_qemux86-64 = " lttng-ust" | ||
59 | RDEPENDS_task-poky-tools-profile_append_qemuppc = " lttng-ust" | ||
60 | RDEPENDS_task-poky-tools-profile_append_emenlow = " lttng-ust" | ||
61 | RDEPENDS_task-poky-tools-profile_append_netbook = " lttng-ust" | ||
62 | |||
63 | RDEPENDS_task-poky-tools-testapps = "\ | ||
64 | blktool \ | ||
65 | tslib-calibrate \ | ||
66 | tslib-tests \ | ||
67 | lrzsz \ | ||
68 | ${KEXECTOOLS} \ | ||
69 | alsa-utils-amixer \ | ||
70 | alsa-utils-aplay \ | ||
71 | owl-video \ | ||
72 | gst-meta-video \ | ||
73 | gst-meta-audio \ | ||
74 | xrestop \ | ||
75 | xwininfo \ | ||
76 | xprop \ | ||
77 | xvideo-tests" | ||
diff --git a/meta/recipes-core/tasks/task-sdk-host.bb b/meta/recipes-core/tasks/task-sdk-host.bb new file mode 100644 index 0000000000..bccf48dbde --- /dev/null +++ b/meta/recipes-core/tasks/task-sdk-host.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | # | ||
2 | # Copyright (C) 2007 OpenedHand Ltd | ||
3 | # | ||
4 | |||
5 | DESCRIPTION = "Host packages for the standalone SDK or external toolchain" | ||
6 | PR = "r8" | ||
7 | LICENSE = "MIT" | ||
8 | ALLOW_EMPTY = "1" | ||
9 | |||
10 | inherit nativesdk | ||
11 | |||
12 | PACKAGES = "${PN}" | ||
13 | |||
14 | RDEPENDS_${PN} = "\ | ||
15 | binutils-cross-canadian \ | ||
16 | gdb-cross-canadian \ | ||
17 | gcc-cross-canadian \ | ||
18 | pkgconfig-nativesdk \ | ||
19 | qemu-nativesdk \ | ||
20 | qemu-helper-nativesdk \ | ||
21 | pseudo-nativesdk \ | ||
22 | unfs-server-nativesdk \ | ||
23 | opkg-nativesdk \ | ||
24 | " | ||
25 | |||
26 | RDEPENDS_${PN}_darwin8 = "\ | ||
27 | odcctools-cross-canadian \ | ||
28 | llvm-cross-canadian \ | ||
29 | pkgconfig-nativesdk \ | ||
30 | opkg-nativesdk \ | ||
31 | libtool-nativesdk \ | ||
32 | " | ||