remove symlinks which is not supported on windows platform
use submodules instead of symlinks for bounds_checking_function and cmsis_os2.h Change-Id: I105c3d2c537d9c3c725adf1265a3312df4286916
This commit is contained in:
12
.gitmodules
vendored
12
.gitmodules
vendored
@@ -1,12 +0,0 @@
|
||||
[submodule "third_party/cmsis"]
|
||||
path = third_party/cmsis
|
||||
url = ../third_party_cmsis.git
|
||||
branch = .
|
||||
[submodule "third_party/bounds_checking_function"]
|
||||
path = third_party/bounds_checking_function
|
||||
url = ../third_party_bounds_checking_function.git
|
||||
branch = .
|
||||
[submodule "third_party/FatFs"]
|
||||
path = third_party/FatFs
|
||||
url = ../third_party_FatFs.git
|
||||
branch = .
|
||||
@@ -1 +0,0 @@
|
||||
../../../third_party/bounds_checking_function/
|
||||
@@ -1 +0,0 @@
|
||||
../../../../third_party/cmsis/CMSIS/RTOS2/Include/cmsis_os2.h
|
||||
32
kal/cmsis/cmsis_os2.h
Normal file
32
kal/cmsis/cmsis_os2.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
|
||||
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
||||
* to endorse or promote products derived from this software without specific prior written
|
||||
* permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||||
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "../../../../third_party/cmsis/CMSIS/RTOS2/Include/cmsis_os2.h"
|
||||
@@ -5,17 +5,18 @@ LITEOSTOPDIR := $(realpath $(LITEOSTOPDIR))
|
||||
C_SOURCES += $(wildcard $(LITEOSTOPDIR)/kernel/src/*.c) \
|
||||
$(wildcard $(LITEOSTOPDIR)/kernel/src/mm/*.c) \
|
||||
$(wildcard $(LITEOSTOPDIR)/components/cpup/*.c) \
|
||||
$(wildcard $(LITEOSTOPDIR)/third_party/bounds_checking_function/src/*.c) \
|
||||
$(wildcard $(LITEOSTOPDIR)/../../third_party/bounds_checking_function/src/*.c) \
|
||||
$(wildcard $(LITEOSTOPDIR)/utils/*.c) \
|
||||
$(wildcard $(LITEOSTOPDIR)/kal/cmsis/*.c) \
|
||||
$(wildcard $(LITEOSTOPDIR)/kal/posix/src/*.c) \
|
||||
Core/Src/task_sample.c
|
||||
|
||||
C_INCLUDES += -I$(LITEOSTOPDIR)/utils \
|
||||
-I$(LITEOSTOPDIR)/kal/cmsis \
|
||||
-I$(LITEOSTOPDIR)/kal/posix/include \
|
||||
-I$(LITEOSTOPDIR)/kernel/include \
|
||||
-I$(LITEOSTOPDIR)/components/cpup \
|
||||
-I$(LITEOSTOPDIR)/third_party/cmsis/CMSIS/RTOS2/Include \
|
||||
-I$(LITEOSTOPDIR)/third_party/bounds_checking_function/include
|
||||
-I$(LITEOSTOPDIR)/../../third_party/bounds_checking_function/include
|
||||
|
||||
# Related to arch
|
||||
ASM_SOURCES += $(wildcard $(LITEOSTOPDIR)/kernel/arch/arm/cortex-m7/gcc/*.s)
|
||||
|
||||
1
third_party/FatFs
vendored
1
third_party/FatFs
vendored
Submodule third_party/FatFs deleted from c9c6b40b5c
1
third_party/bounds_checking_function
vendored
1
third_party/bounds_checking_function
vendored
Submodule third_party/bounds_checking_function deleted from 7052dd04a1
1
third_party/cmsis
vendored
1
third_party/cmsis
vendored
Submodule third_party/cmsis deleted from 2ab5422fcc
Reference in New Issue
Block a user