Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0700CE0082B; Wed, 3 Sep 2014 10:50:42 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (kergoth[at]gmail.com) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.215.46 listed in list.dnswl.org] Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id E85E5E004A0 for ; Wed, 3 Sep 2014 10:50:38 -0700 (PDT) Received: by mail-la0-f46.google.com with SMTP id pv20so10362601lab.33 for ; Wed, 03 Sep 2014 10:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=8QABcnHiho8nHLCQWOqtfmI9Qqg/1TG63lzIg9ktazY=; b=zVOonuMJNJnB3bQh/ITGdlOoYSgL4qXp9HgnMrZCwiFAf+f374PZy1/nYicmZGauqu tiL9YT9qMd12C5Of57czKWzveMJAtWycNF4zkbZGpaZ/ZqrA1fUKUJZsGFyAplqlwnPS iCYaxwgmXqrBKLp8QFs10L+FsRcuJx91GUS7G/IIwWY4vThipWKlfB5+tHYMKem6nMF0 Y2IjIyfStMzPezGVMfy7arHV5XlVeiMBle2W+1a563tettIkrmH9PbqHOzdShvvhZiGw SIhL0Z4nnwxdlN8eIqHswO8GBq0rB+Iziy95vX0jmDUsklZAcgKrEne18YUeUKEyOPGL r13A== X-Received: by 10.112.41.193 with SMTP id h1mr4423711lbl.95.1409766637186; Wed, 03 Sep 2014 10:50:37 -0700 (PDT) Received: from amyr.alm.mentorg.com (nat-lmt.mentorg.com. [139.181.28.34]) by mx.google.com with ESMTPSA id s8sm1380920las.29.2014.09.03.10.50.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 10:50:36 -0700 (PDT) From: Christopher Larson To: meta-freescale@yoctoproject.org Date: Wed, 3 Sep 2014 10:50:31 -0700 Message-Id: <1409766631-8129-1-git-send-email-kergoth@gmail.com> X-Mailer: git-send-email 1.8.3.4 Cc: Christopher Larson Subject: [meta-fsl-ppc][PATCH] boot-format: obey CFLAGS, LDFLAGS X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2014 17:50:42 -0000 From: Christopher Larson Signed-off-by: Christopher Larson --- recipes-bsp/boot-format/boot-format/flags.patch | 21 +++++++++++++++++++++ recipes-bsp/boot-format/boot-format_git.bb | 5 +++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 recipes-bsp/boot-format/boot-format/flags.patch diff --git a/recipes-bsp/boot-format/boot-format/flags.patch b/recipes-bsp/boot-format/boot-format/flags.patch new file mode 100644 index 0000000..cddb34c --- /dev/null +++ b/recipes-bsp/boot-format/boot-format/flags.patch @@ -0,0 +1,21 @@ +Index: git/Makefile +=================================================================== +--- git.orig/Makefile ++++ git/Makefile +@@ -3,14 +3,14 @@ + INSTALL=install + PREFIX=/usr + +-CFLAGS=-Wall ++override CFLAGS+=-Wall + + all: boot_format + + boot_format.o: boot_format.c boot_format.h + + boot_format: boot_format.o +- $(CC) $< -o $@ ++ $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) + + install: boot_format + $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin diff --git a/recipes-bsp/boot-format/boot-format_git.bb b/recipes-bsp/boot-format/boot-format_git.bb index eb7c6de..2d9f9b1 100644 --- a/recipes-bsp/boot-format/boot-format_git.bb +++ b/recipes-bsp/boot-format/boot-format_git.bb @@ -3,11 +3,12 @@ LICENSE = "GPLv2" PR = "r6" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" -SRC_URI = "git://git.freescale.com/ppc/sdk/boot-format.git;nobranch=1" +SRC_URI = "git://git.freescale.com/ppc/sdk/boot-format.git;nobranch=1 \ + file://flags.patch" SRCREV = "4eb81a6797ef4e58bf7d9b2d58afb37a21c1f550" S = "${WORKDIR}/git" -EXTRA_OEMAKE = 'CC="${CC}"' +EXTRA_OEMAKE = 'CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"' do_install(){ oe_runmake DESTDIR=${D} PREFIX=${prefix} install -- 1.8.3.4