* [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT)
@ 2012-07-12 12:58 Horst Kronstorfer
2012-08-10 21:46 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Horst Kronstorfer @ 2012-07-12 12:58 UTC (permalink / raw)
To: u-boot
Make sure that $(LDSCRIPT) is not empty before calling process_lds
with 'cat $(LDSCRIPT)' else cat will block waiting for input from
stdin.
Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
---
dts/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dts/Makefile b/dts/Makefile
index 402dfe1..9a54ca5 100644
--- a/dts/Makefile
+++ b/dts/Makefile
@@ -66,8 +66,9 @@ $(obj)dt.o: $(DT_BIN)
# We look in the LDSCRIPT first.
# Then try the linker which should give us the answer.
# Then check it worked.
- oformat=`$(call process_lds,cat $(LDSCRIPT),FORMAT)` ;\
- oarch=`$(call process_lds,cat $(LDSCRIPT),ARCH)` ;\
+ [ -n "$(LDSCRIPT)" ] && \
+ oformat=`$(call process_lds,cat $(LDSCRIPT),FORMAT)` && \
+ oarch=`$(call process_lds,cat $(LDSCRIPT),ARCH)` ;\
\
[ -z $${oformat} ] && \
oformat=`$(call process_lds,$(GET_LDS),FORMAT)` ;\
--
1.7.11.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT)
2012-07-12 12:58 [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT) Horst Kronstorfer
@ 2012-08-10 21:46 ` Wolfgang Denk
2012-08-14 13:42 ` Kumar Gala
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2012-08-10 21:46 UTC (permalink / raw)
To: u-boot
Dear Horst Kronstorfer,
In message <1342097912-8652-1-git-send-email-hkronsto@frequentis.com> you wrote:
> Make sure that $(LDSCRIPT) is not empty before calling process_lds
> with 'cat $(LDSCRIPT)' else cat will block waiting for input from
> stdin.
>
> Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
> ---
> dts/Makefile | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Leave bigotry in your quarters; there's no room for it on the bridge.
-- Kirk, "Balance of Terror", stardate 1709.2
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT)
2012-08-10 21:46 ` Wolfgang Denk
@ 2012-08-14 13:42 ` Kumar Gala
2012-08-14 21:33 ` Kumar Gala
0 siblings, 1 reply; 4+ messages in thread
From: Kumar Gala @ 2012-08-14 13:42 UTC (permalink / raw)
To: u-boot
On Aug 10, 2012, at 4:46 PM, Wolfgang Denk wrote:
> Dear Horst Kronstorfer,
>
> In message <1342097912-8652-1-git-send-email-hkronsto@frequentis.com> you wrote:
>> Make sure that $(LDSCRIPT) is not empty before calling process_lds
>> with 'cat $(LDSCRIPT)' else cat will block waiting for input from
>> stdin.
>>
>> Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
>> ---
>> dts/Makefile | 5 +++--
>> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> Applied, thanks.
>
> Best regards,
>
> Wolfgang Denk
>
This patch is breaking builds on (P4080DS_config) on ppc:
arch/powerpc/cpu/mpc85xx/libmpc85xx.o: In function `ft_cpu_setup':
/local/home/galak/git/u-boot/arch/powerpc/cpu/mpc85xx/fdt.c:614: undefined reference to `get_board_sys_clk'
arch/powerpc/cpu/mpc85xx/libmpc85xx.o: In function `get_sys_info':
/local/home/galak/git/u-boot/arch/powerpc/cpu/mpc85xx/speed.c:77: undefined reference to `get_board_sys_clk'
arch/powerpc/cpu/mpc85xx/libmpc85xx.o:(.got2+0x344): undefined reference to `tlb_table'
arch/powerpc/cpu/mpc85xx/libmpc85xx.o:(.got2+0x348): undefined reference to `num_tlb_entries'
arch/powerpc/lib/libpowerpc.o: In function `board_init_r':
/local/home/galak/git/u-boot/arch/powerpc/lib/board.c:850: undefined reference to `mac_read_from_eeprom'
common/libcommon.o:(.u_boot_cmd+0x370): undefined reference to `do_mac'
drivers/misc/libmisc.o:(.got2+0x14): undefined reference to `law_table'
drivers/misc/libmisc.o:(.got2+0x18): undefined reference to `num_law_entries'
drivers/pci/libpci.o: In function `pci_init':
/local/home/galak/git/u-boot/drivers/pci/pci.c:731: undefined reference to `pci_init_board'
board/freescale/corenet_ds/libcorenet_ds.o: In function `ft_board_setup':
/local/home/galak/git/u-boot/board/freescale/corenet_ds/corenet_ds.c:231: undefined reference to `pci_of_setup'
board/freescale/corenet_ds/libcorenet_ds.o: In function `board_ft_fman_fixup_port':
/local/home/galak/git/u-boot/board/freescale/corenet_ds/eth_p4080.c:230: undefined reference to `fdt_set_phy_handle'
/local/home/galak/git/u-boot/board/freescale/corenet_ds/eth_p4080.c:238: undefined reference to `fdt_set_phy_handle'
make: *** [u-boot] Error 1
[
- k
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT)
2012-08-14 13:42 ` Kumar Gala
@ 2012-08-14 21:33 ` Kumar Gala
0 siblings, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2012-08-14 21:33 UTC (permalink / raw)
To: u-boot
On Aug 14, 2012, at 8:42 AM, Kumar Gala wrote:
>
> On Aug 10, 2012, at 4:46 PM, Wolfgang Denk wrote:
>
>> Dear Horst Kronstorfer,
>>
>> In message <1342097912-8652-1-git-send-email-hkronsto@frequentis.com> you wrote:
>>> Make sure that $(LDSCRIPT) is not empty before calling process_lds
>>> with 'cat $(LDSCRIPT)' else cat will block waiting for input from
>>> stdin.
>>>
>>> Signed-off-by: Horst Kronstorfer <hkronsto@frequentis.com>
>>> ---
>>> dts/Makefile | 5 +++--
>>> 1 file changed, 3 insertions(+), 2 deletions(-)
>>
>> Applied, thanks.
>>
>> Best regards,
>>
>> Wolfgang Denk
>>
>
> This patch is breaking builds on (P4080DS_config) on ppc:
>
> arch/powerpc/cpu/mpc85xx/libmpc85xx.o: In function `ft_cpu_setup':
> /local/home/galak/git/u-boot/arch/powerpc/cpu/mpc85xx/fdt.c:614: undefined reference to `get_board_sys_clk'
> arch/powerpc/cpu/mpc85xx/libmpc85xx.o: In function `get_sys_info':
> /local/home/galak/git/u-boot/arch/powerpc/cpu/mpc85xx/speed.c:77: undefined reference to `get_board_sys_clk'
> arch/powerpc/cpu/mpc85xx/libmpc85xx.o:(.got2+0x344): undefined reference to `tlb_table'
> arch/powerpc/cpu/mpc85xx/libmpc85xx.o:(.got2+0x348): undefined reference to `num_tlb_entries'
> arch/powerpc/lib/libpowerpc.o: In function `board_init_r':
> /local/home/galak/git/u-boot/arch/powerpc/lib/board.c:850: undefined reference to `mac_read_from_eeprom'
> common/libcommon.o:(.u_boot_cmd+0x370): undefined reference to `do_mac'
> drivers/misc/libmisc.o:(.got2+0x14): undefined reference to `law_table'
> drivers/misc/libmisc.o:(.got2+0x18): undefined reference to `num_law_entries'
> drivers/pci/libpci.o: In function `pci_init':
> /local/home/galak/git/u-boot/drivers/pci/pci.c:731: undefined reference to `pci_init_board'
> board/freescale/corenet_ds/libcorenet_ds.o: In function `ft_board_setup':
> /local/home/galak/git/u-boot/board/freescale/corenet_ds/corenet_ds.c:231: undefined reference to `pci_of_setup'
> board/freescale/corenet_ds/libcorenet_ds.o: In function `board_ft_fman_fixup_port':
> /local/home/galak/git/u-boot/board/freescale/corenet_ds/eth_p4080.c:230: undefined reference to `fdt_set_phy_handle'
> /local/home/galak/git/u-boot/board/freescale/corenet_ds/eth_p4080.c:238: undefined reference to `fdt_set_phy_handle'
> make: *** [u-boot] Error 1
> [
>
> - k
This is fixed by:
http://patchwork.ozlabs.org/patch/177235/
- k
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-08-14 21:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-12 12:58 [U-Boot] [PATCH] dts/Makefile: Check for empty $(LDSCRIPT) Horst Kronstorfer
2012-08-10 21:46 ` Wolfgang Denk
2012-08-14 13:42 ` Kumar Gala
2012-08-14 21:33 ` Kumar Gala
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.