diff options
Diffstat (limited to 'meta/classes/rootfs_ipk.bbclass')
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 9d63450dd1..6d4f9facc0 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -23,35 +23,6 @@ OPKGLIBDIR = "${localstatedir}/lib" | |||
23 | 23 | ||
24 | MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg" | 24 | MULTILIBRE_ALLOW_REP = "${OPKGLIBDIR}/opkg" |
25 | 25 | ||
26 | ipk_insert_feed_uris () { | ||
27 | |||
28 | echo "Building from feeds activated!" | ||
29 | |||
30 | for line in ${IPK_FEED_URIS} | ||
31 | do | ||
32 | # strip leading and trailing spaces/tabs, then split into name and uri | ||
33 | line_clean="`echo "$line"|sed 's/^[ \t]*//;s/[ \t]*$//'`" | ||
34 | feed_name="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\1/p'`" | ||
35 | feed_uri="`echo "$line_clean" | sed -n 's/\(.*\)##\(.*\)/\2/p'`" | ||
36 | |||
37 | echo "Added $feed_name feed with URL $feed_uri" | ||
38 | |||
39 | # insert new feed-sources | ||
40 | echo "src/gz $feed_name $feed_uri" >> ${IPKGCONF_TARGET} | ||
41 | done | ||
42 | |||
43 | # Allow to use package deploy directory contents as quick devel-testing | ||
44 | # feed. This creates individual feed configs for each arch subdir of those | ||
45 | # specified as compatible for the current machine. | ||
46 | # NOTE: Development-helper feature, NOT a full-fledged feed. | ||
47 | if [ -n "${FEED_DEPLOYDIR_BASE_URI}" ]; then | ||
48 | for arch in ${PACKAGE_ARCHS} | ||
49 | do | ||
50 | echo "src/gz local-$arch ${FEED_DEPLOYDIR_BASE_URI}/$arch" >> ${IMAGE_ROOTFS}/etc/opkg/local-$arch-feed.conf | ||
51 | done | ||
52 | fi | ||
53 | } | ||
54 | |||
55 | python () { | 26 | python () { |
56 | 27 | ||
57 | if d.getVar('BUILD_IMAGES_FROM_FEEDS', True): | 28 | if d.getVar('BUILD_IMAGES_FROM_FEEDS', True): |
@@ -60,7 +31,7 @@ python () { | |||
60 | flags = flags.replace("do_deploy", "") | 31 | flags = flags.replace("do_deploy", "") |
61 | flags = flags.replace("do_populate_sysroot", "") | 32 | flags = flags.replace("do_populate_sysroot", "") |
62 | d.setVarFlag('do_rootfs', 'recrdeptask', flags) | 33 | d.setVarFlag('do_rootfs', 'recrdeptask', flags) |
63 | d.setVar('OPKG_PREPROCESS_COMMANDS', "ipk_insert_feed_uris") | 34 | d.setVar('OPKG_PREPROCESS_COMMANDS', "") |
64 | d.setVar('OPKG_POSTPROCESS_COMMANDS', '') | 35 | d.setVar('OPKG_POSTPROCESS_COMMANDS', '') |
65 | } | 36 | } |
66 | 37 | ||