All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joe MacDonald <joe@deserted.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-networking][PATCH ] sethdlc: don't search host directories for header files
Date: Thu, 24 Apr 2014 21:27:45 -0400	[thread overview]
Message-ID: <20140425012743.GL10115@deserted.net> (raw)
In-Reply-To: <e3335e4355fc4394b8f955272edc19f0@BY2PR03MB254.namprd03.prod.outlook.com>

[-- 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 --]

      reply	other threads:[~2014-04-25  1:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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=20140425012743.GL10115@deserted.net \
    --to=joe@deserted.net \
    --cc=openembedded-devel@lists.openembedded.org \
    /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 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.