[PATCH 1/1] board: Fixed compilation of board.c
Greg KH
gregkh at linuxfoundation.org
Wed Mar 22 13:12:47 UTC 2017
On Wed, Mar 22, 2017 at 02:00:31PM +0100, Artur Lorincz wrote:
> Made the compilation of board.c depend on the CONFIG_OF flag. The
> source file board.c is referencing of_find_all_nodes(...) which is
> included only if the CONFIG_OF flag is set.
>
> Signed-off-by: Artur Lorincz <larturus at yahoo.com>
> ---
> drivers/staging/board/Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/board/Makefile b/drivers/staging/board/Makefile
> index 6842745..146aab0 100644
> --- a/drivers/staging/board/Makefile
> +++ b/drivers/staging/board/Makefile
> @@ -1,3 +1,3 @@
> -obj-y := board.o
> +obj-$(CONFIG_OF) += board.o
Ick, no, what about building this code for other systems?
thanks,
greg k-h
More information about the devel
mailing list