1# 2# Copyright (C) 2016 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17DELIVERABLES = $(APP).bin 18LKR = misc/platform/$(PLATFORM)/linux.extra.lkr 19 20FLAGS += -I. -fno-unwind-tables -fstack-reuse=all -ffunction-sections -fdata-sections -m32 21FLAGS += -Wl,-T $(LKR) -Wl,--gc-sections 22 23 24#platform drivers 25SRCS += src/platform/$(PLATFORM)/platform.c \ 26 src/platform/$(PLATFORM)/i2c.c \ 27 src/platform/$(PLATFORM)/spi.c \ 28 src/platform/$(PLATFORM)/rtc.c \ 29 src/platform/$(PLATFORM)/hostIntf.c 30 31#extra deps 32DEPS += $(wildcard inc/platform/$(PLATFORM)/*.h) 33DEPS += $(LKR) 34 35#platform flags 36FLAGS += -DPLATFORM_HOST_INTF_I2C_BUS=0 37FLAGS += -DPLATFORM_HW_TYPE=0x8086 -DPLATFORM_HW_VER=0 38FLAGS += -DPLAT_HAS_NO_U_TYPES_H 39 40#platform-specific rules 41 42%.bin : %.elf 43 mv $< $@ 44 45