| # Generates a small Makefile used in the root of the output |
| # directory, to allow make to be started from there. |
| # The Makefile also allow for more convinient build of external modules |
| # $1 - Kernel src directory |
| test ! -r $2/Makefile -o -O $2/Makefile || exit 0 |
| # Automatically generated by $0: don't edit |
| MAKEFLAGS += --no-print-directory |
| .PHONY: all \$(MAKECMDGOALS) |
| \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) |
| \$(filter-out all Makefile,\$(MAKECMDGOALS)) %/: |
| \$(MAKE) -C \$(KERNELSRC) O=\$(KERNELOUTPUT) \$@ |