Skip to content

Commit 0515c03

Browse files
committed
Updated build scripts
1 parent 42e11c1 commit 0515c03

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

make/functions.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
# Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/>
33
# (C) 2020 Vladimir Sadovnikov <[email protected]>
44
#
5-
# This file is part of lsp-tk-lib
5+
# This file is part of lsp-dsp-lib
66
#
7-
# lsp-tk-lib is free software: you can redistribute it and/or modify
7+
# lsp-dsp-lib is free software: you can redistribute it and/or modify
88
# it under the terms of the GNU Lesser General Public License as published by
99
# the Free Software Foundation, either version 3 of the License, or
1010
# any later version.
1111
#
12-
# lsp-tk-lib is distributed in the hope that it will be useful,
12+
# lsp-dsp-lib is distributed in the hope that it will be useful,
1313
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1414
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1515
# GNU Lesser General Public License for more details.
1616
#
1717
# You should have received a copy of the GNU Lesser General Public License
18-
# along with lsp-tk-lib. If not, see <https://www.gnu.org/licenses/>.
18+
# along with lsp-dsp-lib. If not, see <https://www.gnu.org/licenses/>.
1919
#
2020

2121
# Deduplicates all strings in the list

make/system.mk

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ else
5353
endif
5454

5555
# Set actual architecture
56+
# The current architecture can be obtained by: gcc -Q --help=target
5657
ifeq ($(patsubst armv6%,armv6,$(BUILD_ARCH)),armv6)
5758
override ARCHITECTURE = arm32
5859
ARCHITECTURE_CFLAGS := -march=armv6 -marm
@@ -92,6 +93,12 @@ else ifeq ($(patsubst i%86,i586,$(BUILD_ARCH)),i586)
9293
else ifeq ($(BUILD_ARCH),x86)
9394
override ARCHITECTURE = i586
9495
ARCHITECTURE_CFLAGS := -march=i586 -m32
96+
else ifeq ($(BUILD_ARCH),riscv32)
97+
override ARCHITECTURE = riscv32
98+
ARCHITECTURE_CFLAGS := -march=rv32imafdc -mabi=lp32d
99+
else ifeq ($(BUILD_ARCH),riscv64)
100+
override ARCHITECTURE = riscv64
101+
ARCHITECTURE_CFLAGS := -march=rv64imafdc -mabi=lp64d
95102
else
96103
override ARCHITECTURE =
97104
ARCHITECTURE_CFLAGS :=

0 commit comments

Comments
 (0)