From b9c2f094f2d7ccf7206a9cb4830a60c192dcf513 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Sat, 4 Apr 2015 20:30:20 +0000 Subject: [PATCH] Fix build race on armv6* and powerpc*. Tested with cross builds amd64 -> armv6(hf) and powerpc(64). Suggested by: andrew@ --- sys/modules/i2c/iicbb/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/modules/i2c/iicbb/Makefile b/sys/modules/i2c/iicbb/Makefile index 75d1c83c7d9..bd4e506fd73 100644 --- a/sys/modules/i2c/iicbb/Makefile +++ b/sys/modules/i2c/iicbb/Makefile @@ -1,8 +1,11 @@ # $FreeBSD$ .PATH: ${.CURDIR}/../../../dev/iicbus +.if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "powerpc" +ofw_bus_if= ofw_bus_if.h +.endif KMOD = iicbb SRCS = device_if.h bus_if.h iicbus_if.h \ - iicbb_if.h iicbb_if.c iicbb.c opt_platform.h + iicbb_if.h iicbb_if.c iicbb.c ${ofw_bus_if} opt_platform.h .include