2020-03-21 14:01:56 +08:00
|
|
|
############################################################################
|
|
|
|
# boards/risc-v/litex/arty_a7/scripts/Make.defs
|
|
|
|
#
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
# License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
# under the License.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2020-05-19 22:25:18 +08:00
|
|
|
include $(TOPDIR)/.config
|
|
|
|
include $(TOPDIR)/tools/Config.mk
|
2021-12-27 00:18:22 +08:00
|
|
|
include $(TOPDIR)/arch/risc-v/src/common/Toolchain.defs
|
2020-03-21 14:01:56 +08:00
|
|
|
|
|
|
|
LDSCRIPT = ld.script
|
2022-02-15 05:29:40 +08:00
|
|
|
ARCHSCRIPT += $(BOARD_DIR)$(DELIM)scripts$(DELIM)$(LDSCRIPT)
|
2020-03-21 14:01:56 +08:00
|
|
|
|
|
|
|
ARCHPICFLAGS = -fpic -msingle-pic-base -mpic-register=r10
|
|
|
|
|
2022-05-12 21:42:03 +08:00
|
|
|
CFLAGS := $(ARCHCFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
|
2020-03-21 14:01:56 +08:00
|
|
|
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
2022-05-12 21:42:03 +08:00
|
|
|
CXXFLAGS := $(ARCHCXXFLAGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS) -pipe
|
2020-03-21 14:01:56 +08:00
|
|
|
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
2020-09-24 18:46:51 +08:00
|
|
|
CPPFLAGS := $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRAFLAGS)
|
2022-04-23 16:33:09 +08:00
|
|
|
AFLAGS += $(CFLAGS) -D__ASSEMBLY__
|