freebsd-dev/tools/build/cross-build/mkimg/Makefile
Simon J. Gerraty baf4abfc39 Allow building mkimg as cross-tool
For linux the mmap offset must also be page aligned, and we
need to disable macros like __FBSDID()

Change the linux osdep_uuidgen() to use more portable gettimeofday().

Reviewed by: marcel
2017-03-03 01:56:55 +00:00

28 lines
381 B
Makefile

# $FreeBSD$
# allow building mkimg as a host tool.
MKIMG_SRC = ${SRCTOP}/usr.bin/mkimg
.PATH: ${MKIMG_SRC}
.if ${.MAKE.OS} == "Linux"
WARNS= 0
CFLAGS+= \
-D"__FBSDID(x)=" \
-D_XOPEN_SOURCE -D_GNU_SOURCE
.PATH: ${SRCTOP}/lib/libutil
SRCS+= expand_number.c
.endif
MK_STAGING=no
MK_TESTS= no
.include <${MKIMG_SRC}/Makefile>
.if ${.MAKE.OS} == "Linux"
LDADD+= -lbsd
.endif