Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 3D028E00897; Tue, 20 Jan 2015 03:34:19 -0800 (PST) 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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.192.54 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 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 Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4A1F0E0087C for ; Tue, 20 Jan 2015 03:34:09 -0800 (PST) Received: by mail-qg0-f54.google.com with SMTP id q108so2297761qgd.13 for ; Tue, 20 Jan 2015 03:34:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :organization; bh=ZCwT7mHHLBpyKCXwobHcJwubbEu2nr6Ockx2u77TY2I=; b=hf/K0GxIopqGnmHPkgLge0BPny/9sAEfQybPI9ZoVxDU25qCWNf327rzhuwfHtqf5o Bkwn9+Ky5yPSyvCUr7YS0pHEfGrOFHM7YDtX/9DJryS2B0Me/1lpDE/Fr2be8Ygc7nQZ 6slP50fdx25pqnu5HZ1juZJxuEni2FBUEk+5I9/r1VDPHEUsdPdwASkeq8l4d7rtjsFu voUd3M5F7BeMOf6raBbCHNCW6/Ij63u2LiJ9gNqyCmdaDjRm4Ta2gWTy9z+HLukrRAOK fgbwImUkZKPhsfIndLqgpHASF07xePi/NyWdKOB/SMkqIHgulSJYtOBHUrVaL+VpmjN/ QrFw== X-Received: by 10.224.5.131 with SMTP id 3mr11326926qav.36.1421753649339; Tue, 20 Jan 2015 03:34:09 -0800 (PST) Received: from nano.lab.ossystems.com.br ([177.100.225.47]) by mx.google.com with ESMTPSA id o9sm14605003qab.8.2015.01.20.03.34.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jan 2015 03:34:06 -0800 (PST) Sender: Otavio Salvador Received: by nano.lab.ossystems.com.br (Postfix, from userid 1000) id EA5441CAA8CB5; Tue, 20 Jan 2015 09:34:02 -0200 (BRST) From: Otavio Salvador To: meta-freescale Mailing List Date: Tue, 20 Jan 2015 09:33:52 -0200 Message-Id: <1421753634-13601-2-git-send-email-otavio@ossystems.com.br> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421753634-13601-1-git-send-email-otavio@ossystems.com.br> References: <1421753634-13601-1-git-send-email-otavio@ossystems.com.br> Organization: O.S. Systems Software LTDA. Cc: Otavio Salvador Subject: [PATCH 2/4] imx-test: Fix linking failures of test utilities 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: Tue, 20 Jan 2015 11:34:19 -0000 This increases the number of tests available. The new files include, when building for i.MX6Q are: ,---- | /unit_tests/hciattach-ar3k.bin | /unit_tests/config_dec | /unit_tests/akiyo.mp4 | /unit_tests/config_net | /unit_tests/mxc_vpu_test.out | /unit_tests/config_encdec | /unit_tests/autorun-vpu.sh | /unit_tests/memtool | /unit_tests/config_enc `---- Change-Id: I58882adc22990d9ec53dc9ead034e85acd64375e Signed-off-by: Otavio Salvador --- recipes-bsp/imx-test/imx-test.inc | 3 +- ...ix-build-in-OpenEmbedded-Core-environment.patch | 69 ++++++++++++++++++++++ recipes-bsp/imx-test/imx-test_3.10.31-1.1.0.bb | 5 +- 3 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 recipes-bsp/imx-test/imx-test/Fix-build-in-OpenEmbedded-Core-environment.patch diff --git a/recipes-bsp/imx-test/imx-test.inc b/recipes-bsp/imx-test/imx-test.inc index 6832498..6e41f61 100644 --- a/recipes-bsp/imx-test/imx-test.inc +++ b/recipes-bsp/imx-test/imx-test.inc @@ -35,7 +35,8 @@ do_make_scripts[deptask] = "do_populate_sysroot" do_make_scripts[depends] += "virtual/kernel:do_install" do_compile() { - unset LDFLAGS + CFLAGS="${TOOLCHAIN_OPTIONS}" + LDFLAGS="${TOOLCHAIN_OPTIONS} -L${STAGING_LIBDIR}" oe_runmake V=1 VERBOSE='' \ CROSS_COMPILE=${TARGET_PREFIX} \ INC="-I${STAGING_INCDIR} \ diff --git a/recipes-bsp/imx-test/imx-test/Fix-build-in-OpenEmbedded-Core-environment.patch b/recipes-bsp/imx-test/imx-test/Fix-build-in-OpenEmbedded-Core-environment.patch new file mode 100644 index 0000000..70c7970 --- /dev/null +++ b/recipes-bsp/imx-test/imx-test/Fix-build-in-OpenEmbedded-Core-environment.patch @@ -0,0 +1,69 @@ +From fd826140db0f2a867ef588cccf2e5322cc77126a Mon Sep 17 00:00:00 2001 +From: Otavio Salvador +Date: Mon, 19 Jan 2015 16:56:29 -0200 +Subject: [PATCH] Fix build in OpenEmbedded-Core environment +Organization: O.S. Systems Software LTDA. + +Some of the unit-tests were not being build due differences on how the +build system behaves when running inside of the OE-Core. This fixes +those minor issues and increases a lot the number of tests available. + +Upstream-Status: Pending + +Signed-off-by: Otavio Salvador + +diff --git a/test/ar3k_bt/Makefile b/test/ar3k_bt/Makefile +index 92e2901..75d3e78 100755 +--- a/test/ar3k_bt/Makefile ++++ b/test/ar3k_bt/Makefile +@@ -21,7 +21,7 @@ all: $(OBJS) + CFLAGS += -lbluetooth + + $(OBJDIR)/hciattach-ar3k.bin : +- $(CC) ${INC} -Wall -lbluetooth -g hciattach_ath3k.c hciattach.c hciattach_qualcomm.c hciattach_st.c hciattach_tialt.c hciattach_ti.c -o hciattach-ar3k.bin ++ $(CC) ${INC} -Wall -lbluetooth -g hciattach_ath3k.c hciattach.c hciattach_qualcomm.c hciattach_st.c hciattach_tialt.c hciattach_ti.c -o $(OBJDIR)/hciattach-ar3k.bin + + clean: + rm -f *.o hciattach-ar3k.bin +diff --git a/test/make.rules b/test/make.rules +index 8982f36..7ff8b38 100755 +--- a/test/make.rules ++++ b/test/make.rules +@@ -33,7 +33,7 @@ $(OBJDIR)/%.out : $(SRCDIR)/%.c + $(OBJDIR)/%.out : $(SRCDIR)/%.s + @mkdir -p `dirname $@` + @echo " Building $@" +- $(VERBOSE)$(CC) -g $(INC) $(CFLAGS) -DASSEMBLER $< -o $@ ++ $(VERBOSE)$(CC) -g $(INC) $(CFLAGS)-DASSEMBLER $< -o $@ + + $(OBJDIR)/%.out : $(SRCDIR)/%.S + @mkdir -p `dirname $@` +diff --git a/test/memtool/Makefile b/test/memtool/Makefile +index 7a72803..c3083a0 100644 +--- a/test/memtool/Makefile ++++ b/test/memtool/Makefile +@@ -20,7 +20,7 @@ CFLAGS+= -Os + all : $(TARGET) + + $(TARGET):$(OBJ) +- $(LINK) -o $(TARGET) $(OBJ) -Os ++ $(LINK) -o $(TARGET) $(OBJ) $(LDFLAGS) -Os + $(STRIP) $(TARGET) + + .PHONY: clean +diff --git a/test/mxc_vpu_test/Makefile b/test/mxc_vpu_test/Makefile +index 6ab989c..985b311 100644 +--- a/test/mxc_vpu_test/Makefile ++++ b/test/mxc_vpu_test/Makefile +@@ -23,7 +23,7 @@ endif + all: $(TARGET) + + $(TARGET): $(OBJ) +- $(LINK) -o $(TARGET) $(OBJ) ${LIBS} -lvpu -lipu -lrt -lpthread ++ $(LINK) -o $(TARGET) $(OBJ) ${LIBS} $(LDFLAGS) -lvpu -lipu -lrt -lpthread + mkdir -p $(OBJDIR) + mv $(TARGET) $(OBJDIR) + cp autorun-vpu.sh $(OBJDIR) +-- +2.1.4 + diff --git a/recipes-bsp/imx-test/imx-test_3.10.31-1.1.0.bb b/recipes-bsp/imx-test/imx-test_3.10.31-1.1.0.bb index 2d29eb7..b5b5024 100644 --- a/recipes-bsp/imx-test/imx-test_3.10.31-1.1.0.bb +++ b/recipes-bsp/imx-test/imx-test_3.10.31-1.1.0.bb @@ -3,8 +3,9 @@ include imx-test.inc # FIXME: Drop 'beta' suffix for GA release -SRC_URI = "${FSL_MIRROR}/${PN}-${PV}-beta.tar.gz" -S="${WORKDIR}/${PN}-${PV}-beta" +SRC_URI = "${FSL_MIRROR}/${PN}-${PV}-beta.tar.gz \ + file://Fix-build-in-OpenEmbedded-Core-environment.patch" +S = "${WORKDIR}/${PN}-${PV}-beta" SRC_URI_append_mx5 = " file://revert_epdc_hdr_change.patch \ file://clocks.sh" -- 2.1.4