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 17include $(NANO_BUILD)/common_config.mk 18 19LOCAL_CFLAGS_cortexm4 += \ 20 -fpic \ 21 -mno-pic-data-is-text-relative \ 22 -msingle-pic-base \ 23 -mpic-register=r9 \ 24 25LOCAL_NANO_MODULE_TYPE := APP 26LOCAL_OBJCOPY_SECT_cortexm4 := .flash .data .relocs .dynsym 27LOCAL_FORCE_STATIC_EXECUTABLE := false 28 29LOCAL_CFLAGS += \ 30 -DNANOAPP_ID=0x$(LOCAL_NANO_APP_ID) \ 31 -DAPP_ID=$(LOCAL_NANO_APP_ID) \ 32 -DNANOAPP_VERSION=$(LOCAL_NANO_APP_VERSION) \ 33 -DAPP_VERSION=$(LOCAL_NANO_APP_VERSION) \ 34 -D__NANOHUB__ \ 35 36# Optimization/debug 37LOCAL_CFLAGS += \ 38 -Os \ 39 -g \ 40