chore(musl): reduce the modifications of musl

Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: I32b820bc0eb7465bf54d506e7f5e759ef64101e2
This commit is contained in:
Caoruihong
2021-08-18 00:24:50 +08:00
parent 4dc059f207
commit 9549f5ebd0
15 changed files with 442 additions and 85 deletions

View File

@@ -60,6 +60,8 @@ kernel_module(module_name) {
"$OPTRTDIR/string/arm/strcmp.S",
"$OPTRTDIR/string/arm/strcpy.c",
"$OPTRTDIR/string/arm/strlen-armv6t2.S",
]
sources += [
"src/arch/arm/memset.S",
"src/arch/arm/memcmp.S",
]
@@ -70,12 +72,20 @@ kernel_module(module_name) {
]
}
include_dirs = [
"$MUSLPORTINGDIR/src/include",
"$MUSLPORTINGDIR/src/internal",
]
public_configs = [ ":public" ]
configs += [ ":private" ]
}
config("public") {
include_dirs = [ "$MUSLPORTINGDIR/include" ]
cflags = [
"-isystem",
rebase_path("$MUSLPORTINGDIR/include"),
]
}
config("private") {
@@ -92,8 +102,9 @@ config("private") {
]
}
include_dirs = [
"$MUSLPORTINGDIR/src/include",
"$MUSLPORTINGDIR/src/internal",
cflags += [
"-Wno-shift-op-parentheses",
"-Wno-logical-op-parentheses",
"-Wno-bitwise-op-parentheses",
]
}

View File

@@ -53,5 +53,6 @@ LOCAL_FLAGS +=-Wno-char-subscripts -Wno-unknown-pragmas
else
LOCAL_FLAGS += -frounding-math -Wno-unused-but-set-variable -Wno-unknown-pragmas
endif
LOCAL_FLAGS += -Wno-shift-op-parentheses -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses
include $(MODULE)