kbuild: pkg: use -f $(srctree)/Makefile to recurse to top Makefile
[sfrench/cifs-2.6.git] / scripts / package / buildtar
index d624a07a4e77abf000fd7323138f6556fbedf034..cfd2a4a3fe42db1bf21e61ac93cc36f280b8c15b 100755 (executable)
@@ -57,7 +57,7 @@ dirs=boot
 # Try to install modules
 #
 if grep -q '^CONFIG_MODULES=y' "${KCONFIG_CONFIG}"; then
-       make ARCH="${ARCH}" O="${objtree}" KBUILD_SRC= INSTALL_MOD_PATH="${tmpdir}" modules_install
+       make ARCH="${ARCH}" -f ${srctree}/Makefile INSTALL_MOD_PATH="${tmpdir}" modules_install
        dirs="$dirs lib"
 fi