Shad Ansari | 2f7f9be | 2017-06-07 13:34:53 -0700 | [diff] [blame^] | 1 | # WRX board |
| 2 | # |
| 3 | |
| 4 | export CONFIG_MAC_RPC ?= n |
| 5 | export CONFIG_SWITCH_RPC ?= n |
| 6 | |
| 7 | # Kernel tree and toolchain |
| 8 | BOARD_DIR ?= $(TOP_DIR)/../boards/cur/$(BOARD) |
| 9 | KERNEL_BRCM_VER = 3.0.2-m1.01 |
| 10 | TOOLCHAIN_PATH ?= /opt/toolchains/maple/toolchains_bin/mipscross/linux/bin |
| 11 | CROSS_COMPILE = $(TOOLCHAIN_PATH)/mips64-nlm-linux- |
| 12 | CROSS_LIB_PATH = $(TOOLCHAIN_PATH)/../mips64-nlm-linux/lib64 |
| 13 | CONFIGURE_TARGET = mips64-nlm-linux |
| 14 | export TOOLCHAIN_PATH |
| 15 | export CROSS_COMPILE |
| 16 | export CONFIGURE_TARGET |
| 17 | |
| 18 | # In the moment we don't plan to build any kernel modules |
| 19 | # if/when we do set OD_KERNEL=linux |
| 20 | export OS_KERNEL= posix |
| 21 | |
| 22 | # OS for user space |
| 23 | OS = posix |
| 24 | |
| 25 | # The following group is only needed if we decide that do need linux kernel modules |
| 26 | # In this case OS_KERNEL above must be set =linux and a few additions are needed in the source tree |
| 27 | KERNELDIR = $(BOARD_DIR)/linux/$(KERNEL_BRCM_VER)/linux |
| 28 | KERNEL_OUTDIR ?= $(KERNELDIR) |
| 29 | export KERNELDIR |
| 30 | export KERNEL_OUTDIR |
| 31 | KERNEL_ARCH = mips |
| 32 | ARCH_FLAGS += -EB -mabi=64 |
| 33 | LD_ARCH_FLAGS += -melf64btsmip |
| 34 | HOST_BIG_ENDIAN ?= y |
| 35 | |
| 36 | export KERNEL_ARCH |
| 37 | export ARCH_FLAGS |
| 38 | |
| 39 | export KERNEL_TAR_NAME = wrx_linux-sdk.tar.bz2 |
| 40 | export LIBS_TAR_NAME = libraries.tar.bz2 |
| 41 | |
| 42 | |
| 43 | ifeq ("$(SUBSYSTEM)", "core") |
| 44 | # Core-specific stuff |
| 45 | endif |
| 46 | |
| 47 | ifeq ("$(SUBSYSTEM)", "apps") |
| 48 | # Apps-specific stuff |
| 49 | endif |