diff options
author | Tom Gundersen <teg@jklm.no> | 2013-03-27 09:25:33 -0400 |
---|---|---|
committer | Ian Stakenvicius <axs@gentoo.org> | 2013-04-02 13:54:36 -0400 |
commit | f3ea87f611a02618a59c1e30989718da6ff31970 (patch) | |
tree | ff11df69864664dcc272d47fb0ab09e48753c879 /configure.ac | |
parent | 07403f07070124ec32dce1e3661a8b2235bad002 (diff) |
udev: make firmware loading optional and disable by default
Distros that whish to support old kernels should set
--with-firmware-dirs="/usr/lib/firmware/updates:/usr/lib/firmware"
to retain the old behaviour.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index df7ba6af4d..045445214b 100644 --- a/configure.ac +++ b/configure.ac @@ -197,8 +197,8 @@ AC_CHECK_DECL([unshare], # ------------------------------------------------------------------------------ AC_ARG_WITH(firmware-path, AS_HELP_STRING([--with-firmware-path=DIR[[[:DIR[...]]]]], - [Firmware search path (default=ROOTPREFIX/lib/firmware/updates:ROOTPREFIX/lib/firmware)]), - [], [with_firmware_path="$rootprefix/lib/firmware/updates:$rootprefix/lib/firmware"]) + [Firmware search path (default="")]), + [], [with_firmware_path=""]) OLD_IFS=$IFS IFS=: for i in $with_firmware_path; do @@ -209,7 +209,8 @@ for i in $with_firmware_path; do fi done IFS=$OLD_IFS -AC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH]) +AC_SUBST(FIRMWARE_PATH) +AM_CONDITIONAL(ENABLE_FIRMWARE, [test "x${FIRMWARE_PATH}" != "x"]) # ------------------------------------------------------------------------------ AC_ARG_ENABLE([gudev], |