diff options
author | Constantin Musca <constantinx.musca@intel.com> | 2012-09-14 12:48:27 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-19 17:56:27 +0100 |
commit | a6d808f8c8aabb6fdc9ca6dc1ab27074fa159605 (patch) | |
tree | 77b4d5125bd31f09be48e5787f61a5682eb970db /meta/recipes-bsp/grub/files | |
parent | 48c01ee679810a751f17c919a095b190a2f37804 (diff) | |
download | poky-a6d808f8c8aabb6fdc9ca6dc1ab27074fa159605.tar.gz |
grub: disable lzma, device-mapper, zfs and nvpair
check-if-liblzma-is-disabled.patch: added
- add support for the --enable_liblzma option
[YOCTO #2750]
(From OE-Core rev: 1773a98b68dd223b016fe408b022c2c5475669c2)
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub/files')
-rw-r--r-- | meta/recipes-bsp/grub/files/check-if-liblzma-is-disabled.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/files/check-if-liblzma-is-disabled.patch b/meta/recipes-bsp/grub/files/check-if-liblzma-is-disabled.patch new file mode 100644 index 0000000000..0eece082f8 --- /dev/null +++ b/meta/recipes-bsp/grub/files/check-if-liblzma-is-disabled.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | Disable liblzma if --enable-liblzma=no | ||
2 | |||
3 | Upstream-Status: Inappropriate [configuration] | ||
4 | |||
5 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
6 | |||
7 | --- a/configure.ac | ||
8 | +++ b/configure.ac | ||
9 | @@ -1029,10 +1029,20 @@ fi | ||
10 | |||
11 | AC_SUBST([LIBGEOM]) | ||
12 | |||
13 | -AC_CHECK_LIB([lzma], [lzma_code], | ||
14 | - [LIBLZMA="-llzma" | ||
15 | - AC_DEFINE([HAVE_LIBLZMA], [1], | ||
16 | - [Define to 1 if you have the LZMA library.])],) | ||
17 | +AC_ARG_ENABLE([liblzma], | ||
18 | + [AS_HELP_STRING([--enable-liblzma], | ||
19 | + [enable liblzma integration (default=guessed)])]) | ||
20 | +if test x"$enable_liblzma" = xno ; then | ||
21 | + liblzma_excuse="explicitly disabled" | ||
22 | +fi | ||
23 | + | ||
24 | +if test x"$liblzma_excuse" = x ; then | ||
25 | + AC_CHECK_LIB([lzma], [lzma_code], | ||
26 | + [LIBLZMA="-llzma" | ||
27 | + AC_DEFINE([HAVE_LIBLZMA], [1], | ||
28 | + [Define to 1 if you have the LZMA library.])],) | ||
29 | +fi | ||
30 | + | ||
31 | AC_SUBST([LIBLZMA]) | ||
32 | |||
33 | AC_ARG_ENABLE([libzfs], | ||