]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/blobdiff - Makefile.var
Change license to MIT
[pes-rpp/rpp-lib.git] / Makefile.var
index 810fb9ee3924ce4fbfee688103c436824b6f591c..a7b4e2e777a93adbc873c4966559cee318e521bf 100644 (file)
@@ -1,18 +1,34 @@
-# Copyright (C) 2013-2015 Czech Technical University in Prague
+# Copyright (C) 2013-2015, 2019 Czech Technical University in Prague
 #
 # Authors:
 #     - Michal Sojka <sojkam1@fel.cvut.cz>
 #
-# This document contains proprietary information belonging to Czech
-# Technical University in Prague. Passing on and copying of this
-# document, and communication of its contents is not permitted
-# without prior written authorization.
+# Permission is hereby granted, free of charge, to any person
+# obtaining a copy of this software and associated documentation
+# files (the "Software"), to deal in the Software without
+# restriction, including without limitation the rights to use,
+# copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following
+# conditions:
+
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+# OTHER DEALINGS IN THE SOFTWARE.
 #
 # File : Makefile.var
 # Abstract:
 #      Definitions of variables used by Makefile
 
-rpp_lib_OS ?= 7.0.2
+rpp_lib_OS ?= 8.2.2
 
 rpp_lib_SOURCES =                                                              \
        rpp/src/rpp/rpp.c                                               \
@@ -33,11 +49,13 @@ rpp_lib_SOURCES += \
 target_or_common = $(if $(wildcard ../../../$(dir $(1))/_$(TARGET)/$(notdir $(1))),$(dir $(1))/_$(TARGET)/$(notdir $(1)),$(1))
 
 rpp_lib_SOURCES +=                                                             \
+       $(lwip_SOURCES)                                                 \
        rpp/src/rpp/adc.c                                               \
        rpp/src/rpp/can.c                                               \
        rpp/src/rpp/gio.c                                               \
        rpp/src/rpp/sci.c                                               \
        rpp/src/drv/adc.c                                               \
+       rpp/src/rpp/eth.c                                               \
        rpp/src/drv/_$(TARGET)/port_def.c               \
        rpp/src/drv/gio.c                                               \
        rpp/src/drv/gio_tab.c                                   \
@@ -47,7 +65,7 @@ rpp_lib_SOURCES +=                                                            \
        rpp/src/sys/asm/sys_intvecs.asm                 \
        rpp/src/sys/asm/sys_mpu.asm                             \
        rpp/src/sys/asm/sys_pmu.asm                             \
-       rpp/src/sys/_$(TARGET)/notification.c   \
+       $(call target_or_common,rpp/src/sys/notification.c)     \
        rpp/src/sys/phy_dp83848h.c                              \
        rpp/src/sys/sys_phantom.c                               \
        $(call target_or_common,rpp/src/sys/sys_pinmux.c) \
@@ -61,7 +79,7 @@ rpp_lib_SOURCES +=                                                            \
        rpp/src/sys/ti_drv_esm.c                                        \
        rpp/src/sys/ti_drv_gio.c                                        \
        rpp/src/sys/ti_drv_het.c                                        \
-       rpp/src/sys/ti_drv_het2.c                \
+       rpp/src/sys/ti_drv_het2.c                               \
        rpp/src/sys/ti_drv_i2c.c                                        \
        rpp/src/sys/ti_drv_mdio.c                               \
        rpp/src/sys/ti_drv_mibspi.c                             \
@@ -141,14 +159,15 @@ rpp_lib_SOURCES_$(TARGET_HAS_DMM) += rpp/src/sys/ti_drv_dmm.c
 
 rpp_lib_SOURCES_$(TARGET_HAS_SPI) +=                   \
        rpp/src/drv/spi.c                                               \
-       rpp/src/drv/spi_tms570.c
+       rpp/src/drv/spi_tms570.c                                        \
+       rpp/src/drv/_$(TARGET)/spi_def.c                        \
+       rpp/src/rpp/spi.c                                               \
 
 rpp_lib_SOURCES_posix = \
        os/$(rpp_lib_OS)/src/rpp/sci_posix.c
 
 
 rpp_lib_SOURCES_tms570_rpp =                                   \
-          $(lwip_SOURCES)                                                      \
        rpp/src/drv/dac.c                                               \
        rpp/src/drv/din.c                                               \
        rpp/src/drv/emac.c                                              \
@@ -160,7 +179,6 @@ rpp_lib_SOURCES_tms570_rpp =                                        \
        rpp/src/drv/mout.c                                              \
        rpp/src/rpp/dac.c                                               \
        rpp/src/rpp/din.c                                               \
-       rpp/src/rpp/eth.c                                               \
        rpp/src/rpp/fr.c                                                        \
        rpp/src/rpp/hbr.c                                               \
        rpp/src/rpp/hout.c                                              \
@@ -179,8 +197,8 @@ rpp_lib_SOURCES += $(rpp_lib_SOURCES_$(TARGET))
 rpp_lib_SOURCES += $(rpp_lib_SOURCES_y)
 
 rpp_lib_INCLUDES =                                                             \
-          lwip/src/include                                                     \
-          lwip/src/include/ipv4                                        \
-          lwip/src/include/ipv6                                        \
+       lwip/src/include                                                        \
+       lwip/src/include/ipv4                                   \
+       lwip/src/include/ipv6                                   \
        os/$(rpp_lib_OS)/include                                        \
        rpp/include