Andrew Rossignol | 0d6761f | 2016-12-19 14:51:00 -0800 | [diff] [blame] | 1 | # |
Andrew Rossignol | cb0ca9c | 2017-02-09 19:35:02 -0800 | [diff] [blame] | 2 | # CHRE Makefile |
Andrew Rossignol | 0d6761f | 2016-12-19 14:51:00 -0800 | [diff] [blame] | 3 | # |
| 4 | |
Andrew Rossignol | cb0ca9c | 2017-02-09 19:35:02 -0800 | [diff] [blame] | 5 | # Environment Setup ############################################################ |
| 6 | |
| 7 | # Building CHRE is always done in-tree so the CHRE_PREFIX can be assigned to the |
| 8 | # current directory. |
| 9 | CHRE_PREFIX = . |
| 10 | |
| 11 | # Environment Checks ########################################################### |
| 12 | |
| 13 | # Ensure that the user has specified a path to the Hexagon SDK and SLPI tree |
| 14 | # which are required build the runtime. |
| 15 | ifeq ($(HEXAGON_SDK_PREFIX),) |
| 16 | $(error "You must supply a HEXAGON_SDK_PREFIX environment variable \ |
| 17 | containing a path to the hexagon SDK. Example: \ |
| 18 | $$HOME/Qualcomm/Hexagon_SDK/3.0") |
| 19 | endif |
| 20 | |
| 21 | ifeq ($(SLPI_PREFIX),) |
| 22 | $(error "You must supply an SLPI_PREFIX environemnt variable \ |
| 23 | containing a path to the SLPI source tree. Example: \ |
| 24 | $$HOME/slpi_proc") |
| 25 | endif |
| 26 | |
| 27 | # Build Configuration ########################################################## |
| 28 | |
| 29 | OUTPUT_NAME = libchre |
| 30 | |
| 31 | # Include Paths ################################################################ |
| 32 | |
| 33 | # Hexagon Include Paths |
| 34 | HEXAGON_CFLAGS += -I$(HEXAGON_SDK_PREFIX)/incs |
| 35 | HEXAGON_CFLAGS += -I$(HEXAGON_SDK_PREFIX)/incs/stddef |
| 36 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/build/ms |
| 37 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/build/cust |
| 38 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/core/api/services |
| 39 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/core/api/kernel/devcfg |
| 40 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/core/api/kernel/qurt |
| 41 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/core/api/dal |
| 42 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/core/api/mproc |
| 43 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/core/api/systemdrivers |
| 44 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/Sensors/api |
| 45 | HEXAGON_CFLAGS += -I$(SLPI_PREFIX)/Sensors/common/util/mathtools/inc |
| 46 | |
| 47 | # Compiler Flags ############################################################### |
| 48 | |
| 49 | # Define CUST_H to allow including the customer header file. |
| 50 | HEXAGON_CFLAGS += -DCUST_H |
| 51 | |
| 52 | # Makefile Includes ############################################################ |
| 53 | |
| 54 | include apps/hello_world/hello_world.mk |
| 55 | include apps/sensor_world/sensor_world.mk |
| 56 | include apps/timer_world/timer_world.mk |
| 57 | include chre_api/chre_api.mk |
| 58 | include core/core.mk |
| 59 | include pal/pal.mk |
| 60 | include platform/platform.mk |
| 61 | include util/util.mk |
| 62 | |
| 63 | # Common Includes |
| 64 | include build/common.mk |
| 65 | |
| 66 | # Supported Variants Includes. Not all CHRE variants are supported by this |
| 67 | # implementation of CHRE. Example: this CHRE implementation is never built for |
| 68 | # google_cm4_nanohub as Nanohub itself is a CHRE implementation. |
Andrew Rossignol | 2712637 | 2017-02-23 11:50:18 -0800 | [diff] [blame] | 69 | include $(CHRE_PREFIX)/build/variant/google_hexagonv60_slpi.mk |
| 70 | include $(CHRE_PREFIX)/build/variant/google_hexagonv62_slpi.mk |
Andrew Rossignol | d67589d | 2017-02-24 11:09:35 -0800 | [diff] [blame^] | 71 | include $(CHRE_PREFIX)/build/variant/google_x86_linux.mk |