File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ MODPROBE_MODE="#define MODPROBE_MODE"
6262PREFIX=" /usr"
6363DEBUG=" "
6464NUMA=" true"
65+ EXTRA_DEFINES=" "
6566
6667
6768help ()
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
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
You can’t perform that action at this time.
0 commit comments