summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandall2007-10-20 20:03:42 -0700
committerEric Sandall2007-10-20 20:03:42 -0700
commitbc33c222e25fd322976db9c04d64f606653fd1de (patch)
tree1c02bc24caa2bb7f096f37c2784f2dcd0a84f185
parente30425d04371d2ed15a97a2425e034e5e2839d18 (diff)
iwlwifi: Check for CONFIG_FW_LOADER and CONFIG_MAC80211
-rw-r--r--kernels/iwlwifi/HISTORY1
-rwxr-xr-xkernels/iwlwifi/PRE_BUILD22
2 files changed, 23 insertions, 0 deletions
diff --git a/kernels/iwlwifi/HISTORY b/kernels/iwlwifi/HISTORY
index 657f38b691..f99e0dd4f8 100644
--- a/kernels/iwlwifi/HISTORY
+++ b/kernels/iwlwifi/HISTORY
@@ -2,6 +2,7 @@
* DEPENDS: Only needs mac80211 for 2.6.21 and older
* CONFLICTS: Conflicts with mac80211 for 2.6.22 and newer, since it's
now in the kernel
+ * PRE_BUILD: Check for CONFIG_FW_LOADER and CONFIG_MAC80211
2007-10-09 Eric Sandall <sandalle@sourcemage.org>
* DEPENDS: Nope, it just doesn't work often and it happened to be a
diff --git a/kernels/iwlwifi/PRE_BUILD b/kernels/iwlwifi/PRE_BUILD
new file mode 100755
index 0000000000..4866f583e5
--- /dev/null
+++ b/kernels/iwlwifi/PRE_BUILD
@@ -0,0 +1,22 @@
+local _FW_LOADER=$(get_kernel_config CONFIG_FW_LOADER) &&
+local _MAC80211=$(get_kernel_config CONFIG_MAC80211) &&
+
+if [[ $_FW_LOADER != y &&
+ $_FW_LOADER != m ]]
+then
+ message "${PROBLEM_COLOR}You don't have CONFIG_FW_LOADER" \
+ "enabled in your kernel configuration, cannot build" \
+ "${SPELL_COLOR}$SPELL${MESSAGE_COLOR}.${DEFAULT_COLOR}" &&
+ return 1
+fi &&
+
+if [[ $_MAC80211 != y &&
+ $_MAC80211 != m ]]
+then
+ message "${PROBLEM_COLOR}You don't have CONFIG_MAC80211" \
+ "enabled in your kernel configuration, cannot build" \
+ "${SPELL_COLOR}$SPELL${MESSAGE_COLOR}.${DEFAULT_COLOR}" &&
+ return 1
+fi
+
+default_pre_build