Makefile 498 B

12345678910111213141516171819
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #ifeq ($(KP_MODULE_ROOT),)
  3. #KP_MODULE_ROOT=$(KERNEL_SRC)/$(M)
  4. #endif
  5. #KBUILD_OPTIONS+=KBUILD_DTC_INCLUDE=$(KP_MODULE_ROOT)
  6. # Kbuild assumes devicetree source lives in arch/arm64/boot/dts, but perhaps it
  7. # lives in some other directory in your project. Specify it with KBUILD_EXTMOD_DTS
  8. # KBUILD_OPTIONS+=KBUILD_EXTMOD_DTS=camera
  9. all: modules # dtbs
  10. clean:
  11. $(MAKE) -C $(KERNEL_SRC) M=$(M) clean
  12. %:
  13. $(MAKE) -C $(KERNEL_SRC) M=$(M) $@ $(KBUILD_OPTIONS)