Makefile 387 B

12345678910111213141516
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. KBUILD_OPTIONS+= DISPLAY_ROOT=$(KERNEL_SRC)/$(M)
  3. all:
  4. $(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
  5. modules_install:
  6. $(MAKE) INSTALL_MOD_STRIP=1 -C $(KERNEL_SRC) M=$(M) modules_install
  7. %:
  8. $(MAKE) -C $(KERNEL_SRC) M=$(M) $@ $(KBUILD_OPTIONS)
  9. clean:
  10. rm -f *.o *.ko *.mod.c *.mod.o *~ .*.cmd Module.symvers
  11. rm -rf .tmp_versions