Skip to content

Commit bdc0a39

Browse files
committed
option for extra defines (e.g. --extra=PDA_SKIP_UNLOCK_FAILURE)
1 parent fd23847 commit bdc0a39

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

configure

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ MODPROBE_MODE="#define MODPROBE_MODE"
6262
PREFIX="/usr"
6363
DEBUG=""
6464
NUMA="true"
65+
EXTRA_DEFINES=""
6566

6667

6768
help()
@@ -73,6 +74,7 @@ help()
7374
echo " --debug=<true|false>"
7475
echo " --numa=<true|false>"
7576
echo " --modprobe=<true|false>"
77+
echo " --extra=<additional defines, comma separated>"
7678
}
7779

7880

@@ -120,6 +122,11 @@ do
120122
continue
121123
;;
122124

125+
"--extra" )
126+
EXTRA_DEFINES=$VALUE
127+
continue
128+
;;
129+
123130
* )
124131
echo "Unknown parameter $PARAMETER!"
125132
exit -1
@@ -233,6 +240,12 @@ gen_config()
233240
echo "$KMOD_AVAIL" >> $BUILD_PATH/src/config.h
234241
echo "$NUMA_AVAIL" >> $BUILD_PATH/src/config.h
235242
echo "$MODPROBE_MODE" >> $BUILD_PATH/src/config.h
243+
244+
for DEF in ${EXTRA_DEFINES//,/ }
245+
do
246+
echo "#define $DEF" >> $BUILD_PATH/src/config.h
247+
done
248+
236249
echo "#endif /* CONFIG_H */" >> $BUILD_PATH/src/config.h
237250
}
238251

0 commit comments

Comments
 (0)