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 17LOCAL_PATH := $(call my-dir) 18 19######################################################## 20# COMMON OS & BL defs 21######################################################## 22 23NANOHUB_PALTFORM_PATH := $(LOCAL_PATH) 24 25######################################################## 26# BOOT LOADER BINARY 27######################################################## 28 29include $(CLEAR_NANO_VARS) 30 31LOCAL_MODULE := libnanohub_bl_stm32 32LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 33LOCAL_LICENSE_CONDITIONS := notice 34LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE 35LOCAL_AUX_ARCH := stm32 36 37LOCAL_SRC_FILES := \ 38 bl.c \ 39 gpio.c \ 40 pwr.c \ 41 42include $(BUILD_NANOHUB_BL_STATIC_LIBRARY) 43 44######################################################## 45# NANOHUB OS BINARY 46######################################################## 47 48include $(CLEAR_NANO_VARS) 49 50LOCAL_MODULE := libnanohub_os_stm32 51LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 52LOCAL_LICENSE_CONDITIONS := notice 53LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../NOTICE 54LOCAL_AUX_ARCH := stm32 55 56LOCAL_SRC_FILES := \ 57 apInt.c \ 58 crc.c \ 59 crt_stm32.c \ 60 dma.c \ 61 eeData.c \ 62 exti.c \ 63 gpio.c \ 64 hostIntf.c \ 65 i2c.c \ 66 mpu.c \ 67 platform.c \ 68 pwr.c \ 69 rtc.c \ 70 spi.c \ 71 syscfg.c \ 72 usart.c \ 73 wdt.c \ 74 75include $(BUILD_NANOHUB_OS_STATIC_LIBRARY) 76