public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: sh1.park at lge.com <sh1.park@lge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [Patch alt] common/cmd_test: Avoid macro expansion
Date: Fri, 5 Apr 2013 08:06:53 +0900	[thread overview]
Message-ID: <007a01ce3189$1b597090$520c51b0$@park@lge.com> (raw)
In-Reply-To: <1365112624-28654-1-git-send-email-yorksun@freescale.com>

Dear Mr.Sun,

  We are using freescales bootloader as GPL, but as a Requirement Manager

https://wws.lg.com/global/support/opensource/opensourceList?superOsCategoryI
d=CAT00000011&osCategoryId=CAT00000051

I am not sure to what extent we can use your freescale bootloader as GPL.
We just use all the codes and call lgboot.
Wonder if this is Copy Right Infringement? If we do use these codes don't
we have to call this Freescale boot instead
Of lgboot?

nandboot/ipl_startup.S
nandboot/ipl_startup2.c
platform/boot.c
drivers/nfc/mxc_nfc.c
nandboot/mxc_spl_startup.S



??? ??/Best of Regards
Sam Park 
Senior Research Engineer
sh1.park at lge.com| www.lge.com
Tel:82-31-610-9580
M:82-10-2784-5903
Fax:82-31-610-9631



-----Original Message-----
From: u-boot-bounces@lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On
Behalf Of York Sun
Sent: Friday, April 05, 2013 6:57 AM
To: wd at denx.de
Cc: trini at ti.com; u-boot at lists.denx.de; pali.rohar at gmail.com
Subject: [U-Boot] [Patch alt] common/cmd_test: Avoid macro expansion

cmd_test.c adds "true" and "false" as new commands. We need to avoid macro
expansion for U_BOOT_CMD.

Signed-off-by: York Sun <yorksun@freescale.com>
---
This is alternative patch to fix macro expansion issue for cmd_test.c

 common/cmd_test.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/cmd_test.c b/common/cmd_test.c index d4ec186..26a84af
100644
--- a/common/cmd_test.c
+++ b/common/cmd_test.c
@@ -144,6 +144,14 @@ static int do_test(cmd_tbl_t *cmdtp, int flag, int
argc, char * const argv[])
 	return expr;
 }
 
+#ifdef true
+#undef true
+#endif
+
+#ifdef false
+#undef false
+#endif
+
 U_BOOT_CMD(
 	test,	CONFIG_SYS_MAXARGS,	1,	do_test,
 	"minimal test like /bin/sh",
--
1.7.9.5


_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

      reply	other threads:[~2013-04-04 23:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-04 21:57 [U-Boot] [Patch alt] common/cmd_test: Avoid macro expansion York Sun
2013-04-04 23:06 ` sh1.park at lge.com [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='007a01ce3189$1b597090$520c51b0$@park@lge.com' \
    --to=sh1.park@lge.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox