From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Mon, 18 Oct 2010 14:38:58 +0800 Subject: [U-Boot] [PATCH v3 4/7] FDT: only call boot_get_fdt from generic code In-Reply-To: <1286999857-13790-5-git-send-email-john.rigby@linaro.org> References: <1285775292-15060-1-git-send-email-john.rigby@linaro.org> <1286999857-13790-5-git-send-email-john.rigby@linaro.org> Message-ID: <4CBBEB82.1080309@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de John Rigby wrote: > All arches except nios2 and microblaze call boot_get_fdt > from bootm_start in common/cmd_bootm.c. > > Having nios2 and microblaze do so as well removes code from > their respective do_bootm_linux routines and allows removal of > a nasty ifdef from bootm_start. > > In the case where boot_get_fdt returns an error bootm_start > returns and the platform specific do_bootm_linux routines > will never get called. > > Also only check argv[3] for an fdt addr if argc > 3 first. > This is already the case for nios2. > > Signed-off-by: John Rigby > CC: Scott McNutt > CC: Michal Simek > CC: Thomas Chou > --- > arch/nios2/lib/bootm.c | 8 +++----- Tested with/without libfdt support on nios2 board. Tested-by: Thomas Chou