mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
Remove hand-rolled cross-build glue. Normal cross-build infrastructure
in FreeBSD likely supports this without any extra work.
This commit is contained in:
parent
5b139b2d75
commit
84ec8649b6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158309
@ -8,14 +8,6 @@ KMOD = rr232x
|
||||
SRCS = opt_scsi.h opt_cam.h bus_if.h device_if.h pci_if.h os_bsd.h os_bsd.c osm_bsd.c rr232x_config.c
|
||||
OBJS = rr232x_lib.o
|
||||
|
||||
ARCH ?= $(MACHINE_ARCH)
|
||||
.if $(MACHINE_ARCH)!=$(ARCH)
|
||||
HOSTARCH != uname -m
|
||||
CROSS_COMPILE ?= /usr/obj/$(ARCH)/usr/src/$(HOSTARCH)/usr/bin/
|
||||
.MAKEFLAGS: MACHINE_ARCH=$(ARCH) CC=$(CROSS_COMPILE)$(CC) LD=$(CROSS_COMPILE)$(LD)\
|
||||
NM=$(CROSS_COMPILE)nm OBJCOPY=$(CROSS_COMPILE)objcopy
|
||||
.endif
|
||||
|
||||
rr232x_lib.o:
|
||||
uudecode -p < ${RR232X}/$(MACHINE_ARCH)-elf.rr232x_lib.o.uu > ${.TARGET}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user