Use BSP_NAME when building kernel
Co-Authored-By: Benjamin Dauphin <benjamin.dauphin@live.fr> Co-Authored-By: Gilles Henaux <gill.henaux@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@ SRCS+= clock.c cpulocals.c interrupt.c main.c proc.c system.c \
|
||||
|
||||
LDADD+= -ltimers -lsys -lexec
|
||||
|
||||
LINKERSCRIPT= ${.CURDIR}/arch/${MACHINE_ARCH}/kernel.lds
|
||||
LINKERSCRIPT= ${.CURDIR}/arch/${MACHINE_ARCH}/kernel-${BSP_NAME}.lds
|
||||
|
||||
.if ${HAVE_GOLD:U} != ""
|
||||
CFLAGS+= -fno-common
|
||||
|
||||
@@ -53,7 +53,7 @@ CPPFLAGS.subr_prf.c+= -Dputchar=kputc
|
||||
# Activate optional support, may be deactivated.
|
||||
CPPFLAGS.subr_prf.c+= -DLIBSA_PRINTF_LONGLONG_SUPPORT -DLIBSA_PRINTF_WIDTH_SUPPORT
|
||||
|
||||
.include "bsp/ti/Makefile.inc"
|
||||
.include "bsp/${BSP_NAME}/Makefile.inc"
|
||||
|
||||
# some object files we give a symbol prefix (or namespace) of __k_unpaged_
|
||||
# that must live in their own unique namespace.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# BSP for TI hardware
|
||||
#
|
||||
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/bsp/ti
|
||||
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/bsp/${BSP_NAME}
|
||||
|
||||
.for unpaged_obj in omap_serial.o omap_rtc.o omap_reset.o
|
||||
BSP_OBJS_UNPAGED += ${unpaged_obj}
|
||||
Reference in New Issue
Block a user