nil.mk 677 B

1234567891011121314151617181920212223242526272829
  1. # List of all the ChibiOS/NIL kernel files, there is no need to remove the files
  2. # from this list, you can disable parts of the kernel by editing chconf.h.
  3. ifeq ($(USE_SMART_BUILD),yes)
  4. # Configuration files directory
  5. ifeq ($(CHCONFDIR),)
  6. ifeq ($(CONFDIR),)
  7. CHCONFDIR = .
  8. else
  9. CHCONFDIR := $(CONFDIR)
  10. endif
  11. endif
  12. CHCONF := $(strip $(shell cat $(CHCONFDIR)/chconf.h | egrep -e "\#define"))
  13. KERNSRC := ${CHIBIOS}/os/nil/src/ch.c
  14. else
  15. KERNSRC := ${CHIBIOS}/os/nil/src/ch.c
  16. endif
  17. # Required include directories
  18. KERNINC := ${CHIBIOS}/os/nil/include
  19. # Shared variables
  20. ALLCSRC += $(KERNSRC)
  21. ALLINC += $(KERNINC)
  22. # OS Library
  23. include $(CHIBIOS)/os/oslib/oslib.mk