aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-02-29 22:54:52 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-01 15:47:48 +0000
commit998abea2748c6c7e0873ffd382b2bb2fd233c3f1 (patch)
tree84615a91b25a4d60357d11b42730d2454c20dc44 /meta/recipes-core
parentde046e430cf2954ae83dea7e27cb1da5d5ab59d3 (diff)
downloadopenembedded-core-contrib-998abea2748c6c7e0873ffd382b2bb2fd233c3f1.tar.gz
openembedded-core-contrib-998abea2748c6c7e0873ffd382b2bb2fd233c3f1.tar.bz2
openembedded-core-contrib-998abea2748c6c7e0873ffd382b2bb2fd233c3f1.zip
util-linux: Fix removal of lscpu for non-GPLv3 Build
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/util-linux/util-linux-2.21/remove-lscpu.patch43
-rw-r--r--meta/recipes-core/util-linux/util-linux_2.21.bb2
2 files changed, 30 insertions, 15 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-2.21/remove-lscpu.patch b/meta/recipes-core/util-linux/util-linux-2.21/remove-lscpu.patch
index 434e28d637..a15c1e32a7 100644
--- a/meta/recipes-core/util-linux/util-linux-2.21/remove-lscpu.patch
+++ b/meta/recipes-core/util-linux/util-linux-2.21/remove-lscpu.patch
@@ -2,24 +2,39 @@ Upstream-Status: Inappropriate [distribution]
Take out lscpu stuff from the code
-2011/03/17
-Saul Wold <saul.wold@intel.com>
-Nitin A Kamble <nitin.a.kamble@intel.com>
+Signed-off-by: Saul Wold <sgw@linux.intel.com>
-Index: util-linux-2.20.1/sys-utils/Makefile.am
+Index: util-linux-2.21/configure.ac
===================================================================
---- util-linux-2.20.1.orig/sys-utils/Makefile.am
-+++ util-linux-2.20.1/sys-utils/Makefile.am
-@@ -17,12 +17,6 @@ usrsbin_exec_PROGRAMS += ldattach tunelp
- dist_man_MANS += dmesg.1 ctrlaltdel.8 cytune.8 setarch.8 \
- ldattach.8 tunelp.8 rtcwake.8 fsfreeze.8 fstrim.8
+--- util-linux-2.21.orig/configure.ac
++++ util-linux-2.21/configure.ac
+@@ -871,7 +871,7 @@ UL_REQUIRES_BUILD([lsblk], [libblkid])
+ AM_CONDITIONAL(BUILD_LSBLK, test "x$build_lsblk" = xyes)
--if HAVE_CPU_SET_T
+
+-UL_BUILD_INIT([lscpu], [check])
++UL_BUILD_INIT([lscpu], [no])
+ UL_REQUIRES_LINUX([lscpu])
+ UL_REQUIRES_HAVE([lscpu], [cpu_set_t], [cpu_set_t type])
+ AM_CONDITIONAL(BUILD_LSCPU, test "x$build_lscpu" = xyes)
+Index: util-linux-2.21/sys-utils/Makefile.am
+===================================================================
+--- util-linux-2.21.orig/sys-utils/Makefile.am
++++ util-linux-2.21/sys-utils/Makefile.am
+@@ -108,16 +108,6 @@ swapon_CFLAGS = $(AM_CFLAGS) -I$(ul_libb
+ swapon_LDADD = $(ul_libblkid_la)
+ endif
+
+-if BUILD_LSCPU
-usrbin_exec_PROGRAMS += lscpu
--lscpu_SOURCES = lscpu.c $(top_srcdir)/lib/cpuset.c $(top_srcdir)/lib/strutils.c
+-lscpu_SOURCES = lscpu.c $(top_srcdir)/lib/cpuset.c \
+- $(top_srcdir)/lib/strutils.c \
+- $(top_srcdir)/lib/mbsalign.c \
+- $(top_srcdir)/lib/tt.c \
+- $(top_srcdir)/lib/path.c
-dist_man_MANS += lscpu.1
-endif
-
- endif
-
- cytune_SOURCES = cytune.c cyclades.h
+ if BUILD_CHCPU
+ sbin_PROGRAMS += chcpu
+ chcpu_SOURCES = chcpu.c $(top_srcdir)/lib/cpuset.c \
diff --git a/meta/recipes-core/util-linux/util-linux_2.21.bb b/meta/recipes-core/util-linux/util-linux_2.21.bb
index aa6ac649a3..e21f484b79 100644
--- a/meta/recipes-core/util-linux/util-linux_2.21.bb
+++ b/meta/recipes-core/util-linux/util-linux_2.21.bb
@@ -1,5 +1,5 @@
MAJOR_VERSION = "2.21"
-PR = "r0"
+PR = "r1"
require util-linux.inc
# note that `lscpu' is under GPLv3+