Skip to contentSkip to conversation

drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)

PATCH New Mike Frysinger 2 participants 4 messages Feb 6, 2009 – Feb 11, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)

---
 drivers/serial/Makefile  |    4 ++--
 drivers/serial/ns16550.c |    5 -----
 drivers/serial/serial.c  |    4 ----
 3 files changed, 2 insertions(+), 11 deletions(-)
drivers/serial/Makefile +2 -2
index 17235ff..abe2c02 100644
@@ -28,10 +28,10 @@ LIB	:= $(obj)libserial.a
 COBJS-$(CONFIG_ATMEL_USART) += atmel_usart.o
 COBJS-$(CONFIG_MCFUART) += mcfuart.o
 COBJS-$(CONFIG_NS9750_UART) += ns9750_serial.o
-COBJS-y += ns16550.o
+COBJS-$(CONFIG_SYS_NS16550) += ns16550.o
 COBJS-$(CONFIG_DRIVER_S3C4510_UART) += s3c4510b_uart.o
 COBJS-$(CONFIG_S3C64XX) += s3c64xx.o
-COBJS-y += serial.o
+COBJS-$(CONFIG_SYS_NS16550_SERIAL) += serial.o
 COBJS-$(CONFIG_MAX3100_SERIAL) += serial_max3100.o
 COBJS-$(CONFIG_PL010_SERIAL) += serial_pl01x.o
 COBJS-$(CONFIG_PL011_SERIAL) += serial_pl01x.o
drivers/serial/ns16550.c +0 -5
index 93c2243..a9391c7 100644
@@ -5,9 +5,6 @@
  */
 
 #include <config.h>
-
-#ifdef CONFIG_SYS_NS16550
-
 #include <ns16550.h>
 
 #define LCRVAL LCR_8N1					/* 8 data, 1 stop, no parity */
@@ -75,5 +72,3 @@ int NS16550_tstc (NS16550_t com_port)
 {
 	return ((com_port->lsr & LSR_DR) != 0);
 }
-
-#endif
drivers/serial/serial.c +0 -4
index bce7548..966df9a 100644
@@ -23,8 +23,6 @@
 
 #include <common.h>
 
-#ifdef CONFIG_SYS_NS16550_SERIAL
-
 #include <ns16550.h>
 #ifdef CONFIG_NS87308
 #include <ns87308.h>
@@ -328,5 +326,3 @@ DECLARE_ESERIAL_FUNCTIONS(4);
 struct serial_device eserial4_device =
 	INIT_ESERIAL_STRUCTURE(4,"eserial3","EUART4");
 #endif /* CONFIG_SERIAL_MULTI */
-
-#endif
Signature · 1 line
1.6.1.2
#1 lore raw

PATCH 1/1 drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)

Dear Mike Frysinger,

Quoted 6 lines · In message <[email protected]> you wrote:
---
 drivers/serial/Makefile  |    4 ++--
 drivers/serial/ns16550.c |    5 -----
 drivers/serial/serial.c  |    4 ----
 3 files changed, 2 insertions(+), 11 deletions(-)

Fails:

Applying: drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)
error: patch failed: drivers/serial/Makefile:28
error: drivers/serial/Makefile: patch does not apply Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... Auto-merged drivers/serial/Makefile
CONFLICT (content): Merge conflict in drivers/serial/Makefile Failed to merge in the changes.
Patch failed at 0001.

Please rebase and resubmit. Thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
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
Change is the essential process of all existence.
	-- Spock, "Let That Be Your Last Battlefield",
	   stardate 5730.2
#2 lore raw

PATCH 1/1 drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)

Quoted 23 lines · On Wednesday 11 February 2009 17:05:18 Wolfgang Denk wrote:

Dear Mike Frysinger,

Quoted 6 lines · In message <[email protected]> you wrote:
---
 drivers/serial/Makefile  |    4 ++--
 drivers/serial/ns16550.c |    5 -----
 drivers/serial/serial.c  |    4 ----
 3 files changed, 2 insertions(+), 11 deletions(-)

Fails:

Applying: drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)
error: patch failed: drivers/serial/Makefile:28
error: drivers/serial/Makefile: patch does not apply Using index info to reconstruct a base tree... Falling back to patching base and 3-way merge... Auto-merged drivers/serial/Makefile
CONFLICT (content): Merge conflict in drivers/serial/Makefile Failed to merge in the changes.
Patch failed at 0001.

Quoted 1 line

Please rebase and resubmit. Thanks.

your last commit (861a0000) messed up the drivers/serial/Makefile ... you committed the conflict info ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090211/1eff3d83/attachment.pgp

#3 lore raw

PATCH 1/1 drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)

Dear Mike Frysinger,

Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 2 lines

Please rebase and resubmit. Thanks.

your last commit (861a0000) messed up the drivers/serial/Makefile ... you committed the conflict info ...

Yes, stupid me. Sorry, should go to bed earlier.

I ditched that commit.

Best regards,

Wolfgang Denk

Signature · 5 lines
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
Perl itself is  usually  pretty  good  about  telling  you  what  you
shouldn't do. :-)     - Larry Wall in <[email protected]>