mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
loader: fix build on non-x86 platforms
Need to build pnglite with all. Reported by: Herbert J. Skuhra
This commit is contained in:
parent
82661227ed
commit
a3479cfd22
|
@ -6,17 +6,17 @@ CFLAGS+=-I${LDRSRC}
|
|||
|
||||
SRCS+= boot.c commands.c console.c devopen.c interp.c
|
||||
SRCS+= interp_backslash.c interp_parse.c ls.c misc.c
|
||||
SRCS+= module.c nvstore.c
|
||||
SRCS+= module.c nvstore.c pnglite.c
|
||||
|
||||
CFLAGS.module.c += -I$(SRCTOP)/sys/teken -I${SRCTOP}/contrib/pnglite
|
||||
|
||||
.PATH: ${SRCTOP}/contrib/pnglite
|
||||
CFLAGS.pnglite.c+= -I${SRCTOP}/contrib/pnglite
|
||||
CFLAGS.pnglite.c+= -DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib
|
||||
|
||||
.if ${MACHINE} == "i386" || ${MACHINE_CPUARCH} == "amd64"
|
||||
SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
|
||||
SRCS+= load_elf64.c load_elf64_obj.c reloc_elf64.c
|
||||
SRCS+= pnglite.c
|
||||
.PATH: ${SRCTOP}/contrib/pnglite
|
||||
CFLAGS.pnglite.c+= -I${SRCTOP}/contrib/pnglite
|
||||
CFLAGS.pnglite.c+= -DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib
|
||||
.elif ${MACHINE_CPUARCH} == "aarch64"
|
||||
SRCS+= load_elf64.c reloc_elf64.c
|
||||
.elif ${MACHINE_CPUARCH} == "arm"
|
||||
|
|
Loading…
Reference in a new issue