From: Heiko Schocher Date: Mon, 16 Jun 2014 09:58:38 +0200 Subject: [U-Boot] [PATCH v6 0/2] mpc8313: ids8313 board updates Message-ID: <1402905520-15847-1-git-send-email-hs@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de - add CONFIG_SYS_GENERIC_BOARD to the ids8313 board, therefore fdtdec_get_int() is moved out of lib/fdtdec.c as lib/fdtdec.c is only compiled if CONFIG_OF_CONTROL is defined, but defining this for the ids8313 board leads in conjunction with CONFIG_SYS_GENERIC_BOARD in booting error: No valid FDT found - please append one to U-Boot binary, use u-boot-dtb.bin or define CONFIG_OF_EMBED. For sandbox, use -d So move the common used function fdtdec_get_int() out of lib/fdtdec.c into lib/fdtdec_common.c Cc: Simon Glass Cc: Kim Phillips Cc: Wolfgang Denk Cc: Tom Rini Cc: Michael Conrad Heiko Schocher (2): lib, fdt: move fdtdec_get_int() out of lib/fdtdec.c mpc8313: add CONFIG_SYS_GENERIC_BOARD to ids8313 board include/configs/ids8313.h | 3 ++- lib/Makefile | 7 +++++++ lib/fdtdec.c | 36 ------------------------------------ lib/fdtdec_common.c | 38 ++++++++++++++++++++++++++++++++++++++ tools/Makefile | 1 + 5 files changed, 48 insertions(+), 37 deletions(-) create mode 100644 lib/fdtdec_common.c -- 1.8.3.1