File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,16 +113,20 @@ if [[ "$1" == "kernel" ]]; then
113113 fi
114114
115115 if [[ $rc -eq 0 && -n " $MODULES " ]]; then
116- echo " ## Installing modules"
116+ if grep CONFIG_MODULES=y /output/.config > /dev/null; then
117+ echo " ## Installing modules"
117118
118- mod_path=/output/modules
119- # Clean out any old modules
120- rm -rf $mod_path
119+ mod_path=/output/modules
120+ # Clean out any old modules
121+ rm -rf $mod_path
121122
122- (set -x; make $verbose $quiet -j $JFACTOR " $cc " INSTALL_MOD_PATH=$mod_path modules_install)
123- rc=$?
124- if [[ $rc -eq 0 ]]; then
125- tar -cjf /output/modules.tar.bz2 -C $mod_path lib
123+ (set -x; make $verbose $quiet -j $JFACTOR " $cc " INSTALL_MOD_PATH=$mod_path modules_install)
124+ rc=$?
125+ if [[ $rc -eq 0 ]]; then
126+ tar -cjf /output/modules.tar.bz2 -C $mod_path lib
127+ fi
128+ else
129+ echo " ## Modules not configured"
126130 fi
127131 fi
128132
You can’t perform that action at this time.
0 commit comments