diff options
Diffstat (limited to 'board/Makefile')
-rw-r--r-- | board/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/board/Makefile b/board/Makefile new file mode 100644 index 0000000000..ebce089249 --- /dev/null +++ b/board/Makefile @@ -0,0 +1,30 @@ +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +CROS_EC_TOP := $(shell pwd) +BUILD_ROOT := ${BUILD}/$(shell basename ${CROS_EC_TOP}) + +INCLUDES += \ + -I$(TOP) + +ifeq ($(FIRMWARE_ARCH),) +INCLUDES += -I$(STUBDIR)/include +else +INCLUDES += -I$(FWDIR)/arch/$(FIRMWARE_ARCH)/include +endif + +BOARD_SRCS = \ + board.c + +BOARD_OBJS = $(BOARD_SRCS:%.c=${BUILD_ROOT}/%.o) + +ALL_SRCS = ${BOARD_SRCS} + +all : $(BOARD_LIB) + +include ../common.mk + +$(BOARD_LIB) : $(BOARD_OBJS) + rm -f $@ + ar qc $@ $^ |