All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-networking][PATCH ] sethdlc: don't search host directories for header files
@ 2014-04-17  3:41 b40290
  2014-04-23  3:21 ` B40290
  0 siblings, 1 reply; 3+ messages in thread
From: b40290 @ 2014-04-17  3:41 UTC (permalink / raw)
  To: openembedded-devel

From: Chunrong Guo <B40290@freescale.com>

    *The build process hard-codes searches of various directories
     in /usr/src/linux/include when looking for header files,
     delete this to avoid host contamination

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 .../sethdlc/files/fix-includedir.patch                    | 15 +++++++++++++++
 meta-networking/recipes-connectivity/sethdlc/sethdlc.bb   | 11 +++--------
 2 files changed, 18 insertions(+), 8 deletions(-)
 create mode 100644 meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch

diff --git a/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch b/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch
new file mode 100644
index 0000000..49d6d42
--- /dev/null
+++ b/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch
@@ -0,0 +1,15 @@
+--- a/Makefileold	2014-04-16 22:05:58.070199084 -0500
++++ b/Makefile	2014-04-16 22:06:27.153074058 -0500
+@@ -1,11 +1,10 @@
+ CC = gcc
+ CFLAGS = -O2 -Wall -W -Wno-long-long -pipe
+-INCLUDES = -I/usr/src/linux/include -I/usr/src/linux-2.6/include
+ 
+ all:		sethdlc
+ 
+ sethdlc:	sethdlc.c
+-		$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
++		$(CC) $(CFLAGS)  -o $@ $<
+ 
+ install:
+ 		install -C -p -s sethdlc /usr/local/sbin/
diff --git a/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
index 3a9692f..3459a36 100644
--- a/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
+++ b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
@@ -1,27 +1,22 @@
 DESCRIPTION = "set Linux HDLC packet radio modem driver port information"
 HOMEPAGE = "https://www.kernel.org/pub/linux/utils/net/hdlc"
 LICENSE = "GPLv2 & GPLv2+ "
-LIC_FILES_CHKSUM = "file://Makefile;md5=19aada31930b2be84bf7138420d77263"
-
+LIC_FILES_CHKSUM = "file://sethdlc.c;beginline=1;endline=10;md5=90f936879e9f8b755a138aeb348782eb"
 
 SRC_URI = "https://www.kernel.org/pub/linux/utils/net/hdlc/${BPN}-1.18.tar.gz \
+           file://fix-includedir.patch \
 "
 SRC_URI[md5sum] = "9016878156a5eadb06c0bae71cc5c9ab"
 SRC_URI[sha256sum] = "21b1e2e1cb0e288b0ec8fcfd9fed449914e0f8e6fc273706bd5b3d4f6ab6b04e"
 
-
 S = "${WORKDIR}/${BPN}-1.18"
 
-DEPENDS="virtual/kernel"
-
-EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \
-              KERNEL_DIR=${STAGING_KERNEL_DIR} "
+EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}'" 
 
 do_compile_prepend () {
     oe_runmake clean
 }
 
-
 do_install() {
     install -d ${D}/${bindir}
     install sethdlc ${D}/${bindir}/
-- 
1.8.3.2




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-networking][PATCH ] sethdlc: don't search host directories for header files
  2014-04-17  3:41 [meta-networking][PATCH ] sethdlc: don't search host directories for header files b40290
@ 2014-04-23  3:21 ` B40290
  2014-04-25  1:27   ` Joe MacDonald
  0 siblings, 1 reply; 3+ messages in thread
From: B40290 @ 2014-04-23  3:21 UTC (permalink / raw)
  To: B40290@freescale.com, openembedded-devel@lists.openembedded.org

Pings

Thanks,
chunrong

-----Original Message-----
From: b40290@freescale.com [mailto:b40290@freescale.com] 
Sent: Thursday, April 17, 2014 11:42 AM
To: openembedded-devel@lists.openembedded.org
Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290
Subject: [meta-networking][PATCH ] sethdlc: don't search host directories for header files

From: Chunrong Guo <B40290@freescale.com>

    *The build process hard-codes searches of various directories
     in /usr/src/linux/include when looking for header files,
     delete this to avoid host contamination

Signed-off-by: Chunrong Guo <B40290@freescale.com>
---
 .../sethdlc/files/fix-includedir.patch                    | 15 +++++++++++++++
 meta-networking/recipes-connectivity/sethdlc/sethdlc.bb   | 11 +++--------
 2 files changed, 18 insertions(+), 8 deletions(-)  create mode 100644 meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch

diff --git a/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch b/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch
new file mode 100644
index 0000000..49d6d42
--- /dev/null
+++ b/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.
+++ patch
@@ -0,0 +1,15 @@
+--- a/Makefileold	2014-04-16 22:05:58.070199084 -0500
++++ b/Makefile	2014-04-16 22:06:27.153074058 -0500
+@@ -1,11 +1,10 @@
+ CC = gcc
+ CFLAGS = -O2 -Wall -W -Wno-long-long -pipe -INCLUDES = 
+-I/usr/src/linux/include -I/usr/src/linux-2.6/include
+ 
+ all:		sethdlc
+ 
+ sethdlc:	sethdlc.c
+-		$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
++		$(CC) $(CFLAGS)  -o $@ $<
+ 
+ install:
+ 		install -C -p -s sethdlc /usr/local/sbin/
diff --git a/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
index 3a9692f..3459a36 100644
--- a/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
+++ b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
@@ -1,27 +1,22 @@
 DESCRIPTION = "set Linux HDLC packet radio modem driver port information"
 HOMEPAGE = "https://www.kernel.org/pub/linux/utils/net/hdlc"
 LICENSE = "GPLv2 & GPLv2+ "
-LIC_FILES_CHKSUM = "file://Makefile;md5=19aada31930b2be84bf7138420d77263"
-
+LIC_FILES_CHKSUM = "file://sethdlc.c;beginline=1;endline=10;md5=90f936879e9f8b755a138aeb348782eb"
 
 SRC_URI = "https://www.kernel.org/pub/linux/utils/net/hdlc/${BPN}-1.18.tar.gz \
+           file://fix-includedir.patch \
 "
 SRC_URI[md5sum] = "9016878156a5eadb06c0bae71cc5c9ab"
 SRC_URI[sha256sum] = "21b1e2e1cb0e288b0ec8fcfd9fed449914e0f8e6fc273706bd5b3d4f6ab6b04e"
 
-
 S = "${WORKDIR}/${BPN}-1.18"
 
-DEPENDS="virtual/kernel"
-
-EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \
-              KERNEL_DIR=${STAGING_KERNEL_DIR} "
+EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}'" 
 
 do_compile_prepend () {
     oe_runmake clean
 }
 
-
 do_install() {
     install -d ${D}/${bindir}
     install sethdlc ${D}/${bindir}/
--
1.8.3.2




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [meta-networking][PATCH ] sethdlc: don't search host directories for header files
  2014-04-23  3:21 ` B40290
@ 2014-04-25  1:27   ` Joe MacDonald
  0 siblings, 0 replies; 3+ messages in thread
From: Joe MacDonald @ 2014-04-25  1:27 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 4211 bytes --]

Hi Chunrong,

[Re: [oe] [meta-networking][PATCH ] sethdlc: don't search host directories for header files] On 14.04.23 (Wed 03:21) B40290@freescale.com wrote:

> Pings

Sorry about the delayed response on this.  I'm honestly not entirely
sure what to do with this one.  A while back Trevor Woerner proposed we
remove sethdlc entirely:

http://comments.gmane.org/gmane.comp.handhelds.openembedded/62626

and I was ready to merge that when your update came in.  Your patch
addresses what looks like a host contamination problem, but does it also
address the 2.6.x kernel expectation he mentioned?  If so, or if you
can also take a look at it, great, otherwise I'm thinking it may be
appropriate to remove it entirely.  Age isn't an always an indicator of
obsolescence, of course, particularly in networking stuff where things
get working and don't have to be updated very often, ideally, but this
one is looking a bit suspicious.

-J.

> 
> Thanks,
> chunrong
> 
> -----Original Message-----
> From: b40290@freescale.com [mailto:b40290@freescale.com] 
> Sent: Thursday, April 17, 2014 11:42 AM
> To: openembedded-devel@lists.openembedded.org
> Cc: Liu Ting-B28495; Luo Zhenhua-B19537; Guo Chunrong-B40290
> Subject: [meta-networking][PATCH ] sethdlc: don't search host directories for header files
> 
> From: Chunrong Guo <B40290@freescale.com>
> 
>     *The build process hard-codes searches of various directories
>      in /usr/src/linux/include when looking for header files,
>      delete this to avoid host contamination
> 
> Signed-off-by: Chunrong Guo <B40290@freescale.com>
> ---
>  .../sethdlc/files/fix-includedir.patch                    | 15 +++++++++++++++
>  meta-networking/recipes-connectivity/sethdlc/sethdlc.bb   | 11 +++--------
>  2 files changed, 18 insertions(+), 8 deletions(-)  create mode 100644 meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch
> 
> diff --git a/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch b/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.patch
> new file mode 100644
> index 0000000..49d6d42
> --- /dev/null
> +++ b/meta-networking/recipes-connectivity/sethdlc/files/fix-includedir.
> +++ patch
> @@ -0,0 +1,15 @@
> +--- a/Makefileold	2014-04-16 22:05:58.070199084 -0500
> ++++ b/Makefile	2014-04-16 22:06:27.153074058 -0500
> +@@ -1,11 +1,10 @@
> + CC = gcc
> + CFLAGS = -O2 -Wall -W -Wno-long-long -pipe -INCLUDES = 
> +-I/usr/src/linux/include -I/usr/src/linux-2.6/include
> + 
> + all:		sethdlc
> + 
> + sethdlc:	sethdlc.c
> +-		$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
> ++		$(CC) $(CFLAGS)  -o $@ $<
> + 
> + install:
> + 		install -C -p -s sethdlc /usr/local/sbin/
> diff --git a/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
> index 3a9692f..3459a36 100644
> --- a/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
> +++ b/meta-networking/recipes-connectivity/sethdlc/sethdlc.bb
> @@ -1,27 +1,22 @@
>  DESCRIPTION = "set Linux HDLC packet radio modem driver port information"
>  HOMEPAGE = "https://www.kernel.org/pub/linux/utils/net/hdlc"
>  LICENSE = "GPLv2 & GPLv2+ "
> -LIC_FILES_CHKSUM = "file://Makefile;md5=19aada31930b2be84bf7138420d77263"
> -
> +LIC_FILES_CHKSUM = "file://sethdlc.c;beginline=1;endline=10;md5=90f936879e9f8b755a138aeb348782eb"
>  
>  SRC_URI = "https://www.kernel.org/pub/linux/utils/net/hdlc/${BPN}-1.18.tar.gz \
> +           file://fix-includedir.patch \
>  "
>  SRC_URI[md5sum] = "9016878156a5eadb06c0bae71cc5c9ab"
>  SRC_URI[sha256sum] = "21b1e2e1cb0e288b0ec8fcfd9fed449914e0f8e6fc273706bd5b3d4f6ab6b04e"
>  
> -
>  S = "${WORKDIR}/${BPN}-1.18"
>  
> -DEPENDS="virtual/kernel"
> -
> -EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}' \
> -              KERNEL_DIR=${STAGING_KERNEL_DIR} "
> +EXTRA_OEMAKE="CROSS_COMPILE=${TARGET_PREFIX} CC='${CC} ${LDFLAGS}'" 
>  
>  do_compile_prepend () {
>      oe_runmake clean
>  }
>  
> -
>  do_install() {
>      install -d ${D}/${bindir}
>      install sethdlc ${D}/${bindir}/
> --
> 1.8.3.2
> 
> 
-- 
-Joe MacDonald.
:wq

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-25  1:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-17  3:41 [meta-networking][PATCH ] sethdlc: don't search host directories for header files b40290
2014-04-23  3:21 ` B40290
2014-04-25  1:27   ` Joe MacDonald

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.