2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2002-11-03 00:07:02 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2000 - 2002
|
|
|
|
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
2005-11-25 15:38:03 +00:00
|
|
|
********************************************************************
|
|
|
|
* NOTE: This header file defines an interface to U-Boot. Including
|
|
|
|
* this (unmodified) header file in another file is considered normal
|
|
|
|
* use of U-Boot, and does *not* fall under the heading of "derived
|
|
|
|
* work".
|
|
|
|
********************************************************************
|
2002-11-03 00:07:02 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __U_BOOT_H__
|
|
|
|
#define __U_BOOT_H__
|
|
|
|
|
2020-05-10 17:40:13 +00:00
|
|
|
#include <config.h>
|
|
|
|
|
powerpc: enabled building with CONFIG_DM=y
Moving to the driver model requires CONFIG_DM to be enabled. Currently
several boards like kmeter1_defconfig produce a build error when CONFIG_DM
is enabled:
In file included from include/common.h:35,
from ./arch/powerpc/include/asm/fsl_lbc.h:10,
from include/mpc83xx.h:10,
from ./arch/powerpc/include/asm/ppc.h:27,
from ./arch/powerpc/include/asm/u-boot.h:18,
from include/dm/of.h:10,
from include/dm/ofnode.h:12,
from include/dm/device.h:13,
from include/linux/mtd/mtd.h:26,
from drivers/mtd/mtdconcat.c:25:
include/image.h: In function ‘image_check_target_arch’:
include/image.h:846:3: error: #error "please define IH_ARCH_DEFAULT in
your arch asm/u-boot.h"
# error "please define IH_ARCH_DEFAULT in your arch asm/u-boot.h"
^~~~~
include/image.h:848:31: error: ‘IH_ARCH_DEFAULT’ undeclared (first use in
this function); did you mean ‘IH_ARCH_COUNT’?
return image_check_arch(hdr, IH_ARCH_DEFAULT);
The error can be avoided by moving the definition of IH_ARCH_DEFAULT before
#include <asm/ppc.h>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
2019-01-20 08:11:07 +00:00
|
|
|
/* For image.h:image_check_target_arch() */
|
|
|
|
#define IH_ARCH_DEFAULT IH_ARCH_PPC
|
|
|
|
|
2013-03-11 06:50:01 +00:00
|
|
|
/* Use the generic board which requires a unified bd_info */
|
|
|
|
#include <asm-generic/u-boot.h>
|
2017-05-17 14:23:05 +00:00
|
|
|
#include <asm/ppc.h>
|
2013-03-11 06:50:01 +00:00
|
|
|
|
2002-11-03 00:07:02 +00:00
|
|
|
#endif /* __U_BOOT_H__ */
|