All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Jansa <martin.jansa@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-oe][PATCH 14/16] fwts: Update to 16.09 release
Date: Tue, 25 Oct 2016 15:29:47 +0200	[thread overview]
Message-ID: <20161025132947.GB2911@jama> (raw)
In-Reply-To: <20161019053834.11523-14-raj.khem@gmail.com>

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

On Tue, Oct 18, 2016 at 10:38:32PM -0700, Khem Raj wrote:
> license change is just year change from 2014 to 2016
> Fix build with clang while here

fwts-16.09.00: fwts rdepends on dtc, but it isn't a build dependency,
missing dtc in DEPENDS or PACKAGECONFIG? [build-deps]

and for qemuarm it even fails to build:
http://errors.yoctoproject.org/Errors/Details/93027/

> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  ...nstant-logical-operand-warning-with-clang.patch | 81 ++++++++++++++++++++++
>  meta-oe/recipes-test/fwts/fwts_git.bb              | 15 ++--
>  2 files changed, 91 insertions(+), 5 deletions(-)
>  create mode 100644 meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch
> 
> diff --git a/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch b/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch
> new file mode 100644
> index 0000000..ccfe580
> --- /dev/null
> +++ b/meta-oe/recipes-test/fwts/fwts/0001-ignore-constant-logical-operand-warning-with-clang.patch
> @@ -0,0 +1,81 @@
> +From 953cff93c85d3cfd5cbcac56e14443dc5f6e5fbd Mon Sep 17 00:00:00 2001
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Wed, 19 Oct 2016 01:57:16 +0000
> +Subject: [PATCH] ignore constant-logical-operand warning with clang
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +---
> + src/uefi/uefirtauthvar/uefirtauthvar.c | 5 +++++
> + 1 file changed, 5 insertions(+)
> +
> +Index: git/src/uefi/uefirtauthvar/uefirtauthvar.c
> +===================================================================
> +--- git.orig/src/uefi/uefirtauthvar/uefirtauthvar.c
> ++++ git/src/uefi/uefirtauthvar/uefirtauthvar.c
> +@@ -142,6 +142,9 @@ static int uefirtauthvar_deinit(fwts_fra
> + 	return FWTS_OK;
> + }
> + 
> ++#pragma clang diagnostic push
> ++#pragma clang diagnostic ignored "-Wconstant-logical-operand"
> ++
> + static int check_fw_support(fwts_framework *fw, uint64_t status)
> + {
> + 	if ((status == EFI_INVALID_PARAMETER) &&
> +@@ -172,6 +175,8 @@ static int check_fw_support(fwts_framewo
> + 	return FWTS_OK;
> + }
> + 
> ++#pragma clang diagnostic pop
> ++
> + /*
> +  * Set the created authenticated variable, AuthVarCreate,
> +  * and checking the data size and data.
> +Index: git/src/lib/src/fwts_acpi_tables.c
> +===================================================================
> +--- git.orig/src/lib/src/fwts_acpi_tables.c
> ++++ git/src/lib/src/fwts_acpi_tables.c
> +@@ -392,10 +392,14 @@ static int fwts_acpi_handle_fadt(
> + 	/* Determine FACS addr and load it.
> + 	 * Will ignore the missing FACS in the hardware-reduced mode.
> + 	 */
> ++#pragma clang diagnostic push
> ++#pragma clang diagnostic ignored "-Waddress-of-packed-member"
> ++
> + 	result = fwts_acpi_handle_fadt_tables(fw, fadt,
> + 			"FACS", "FIRMWARE_CTRL", "X_FIRMWARE_CTRL",
> + 			&fadt->firmware_control, &fadt->x_firmware_ctrl,
> + 			provenance);
> ++
> + 	if (result != FWTS_OK) {
> + 		if ((result == FWTS_NULL_POINTER) &&
> + 				fwts_acpi_is_reduced_hardware(fadt)) {
> +@@ -414,6 +418,7 @@ static int fwts_acpi_handle_fadt(
> + 		return FWTS_ERROR;
> + 	}
> + 	return FWTS_OK;
> ++#pragma clang diagnostic pop
> + }
> + 
> + /*
> +Index: git/src/dmi/dmicheck/dmicheck.c
> +===================================================================
> +--- git.orig/src/dmi/dmicheck/dmicheck.c
> ++++ git/src/dmi/dmicheck/dmicheck.c
> +@@ -209,6 +209,8 @@ static const char *uuid_patterns[] = {
> + 	"0A0A0A0A-0A0A-0A0A-0A0A-0A0A0A0A0A0A",
> + 	NULL,
> + };
> ++#pragma clang diagnostic push
> ++#pragma clang diagnostic ignored "-Wunneeded-internal-declaration"
> + 
> + static const fwts_chassis_type_map fwts_dmi_chassis_type[] = {
> + 	{ "Invalid",		FWTS_SMBIOS_CHASSIS_INVALID },
> +@@ -245,6 +247,7 @@ static const fwts_chassis_type_map fwts_
> + 	{ "Convertible",	FWTS_SMBIOS_CHASSIS_CONVERTIBLE },
> + 	{ "Detachable",		FWTS_SMBIOS_CHASSIS_DETACHABLE },
> + };
> ++#pragma clang diagnostic pop
> + 
> + /* Remapping table from buggy version numbers to correct values */
> + static const fwts_dmi_version dmi_versions[] = {
> diff --git a/meta-oe/recipes-test/fwts/fwts_git.bb b/meta-oe/recipes-test/fwts/fwts_git.bb
> index 197fe20..cbf5154 100644
> --- a/meta-oe/recipes-test/fwts/fwts_git.bb
> +++ b/meta-oe/recipes-test/fwts/fwts_git.bb
> @@ -3,12 +3,14 @@ DESCRIPTION = "The tool fwts comprises of over fifty tests that are designed to
>  HOMEPAGE = "https://wiki.ubuntu.com/Kernel/Reference/fwts"
>  
>  LICENSE = "GPLv2+"
> -LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=16;md5=deb8af5388e838d133eaa036f4d1496f"
> +LIC_FILES_CHKSUM = "file://src/main.c;beginline=1;endline=16;md5=31da590f3e9f3bd34dcdb9e4db568519"
>  
> -PV = "14.12.00"
> +PV = "16.09.00"
>  
> -SRCREV = "efc18d16294f492b7f72bba64344b2eed50e6a69"
> -SRC_URI = "git://kernel.ubuntu.com/hwe/fwts.git"
> +SRCREV = "7fd1834a879f27647b371c18284868c9a54f6474"
> +SRC_URI = "git://kernel.ubuntu.com/hwe/fwts.git \
> +           file://0001-ignore-constant-logical-operand-warning-with-clang.patch \
> +           "
>  
>  S = "${WORKDIR}/git"
>  
> @@ -16,9 +18,12 @@ DEPENDS = "libpcre json-c glib-2.0"
>  
>  inherit autotools-brokensep
>  
> -CFLAGS += "-I${STAGING_INCDIR}/json-c -Wno-error=misleading-indentation"
> +CFLAGS += "-I${STAGING_INCDIR}/json-c -Wno-error=unknown-pragmas"
>  
>  FILES_${PN} += "${libdir}/fwts/lib*${SOLIBS}"
>  FILES_${PN}-dev += "${libdir}/fwts/lib*${SOLIBSDEV} ${libdir}/fwts/lib*.la"
>  FILES_${PN}-staticdev += "${libdir}/fwts/lib*a"
>  FILES_${PN}-dbg += "${libdir}/fwts/.debug"
> +
> +TOOLCHAIN = "gcc"
> +
> -- 
> 2.10.0
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

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

  reply	other threads:[~2016-10-25 13:29 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-19  5:38 [meta-oe][PATCH 01/16] boinc: Add recipe for boinc-client Khem Raj
2016-10-19  5:38 ` [meta-gnome][PATCH 02/16] libbonobo: Fix missing dep on orbit2-native and build with clang Khem Raj
2016-10-19 20:09   ` akuster808
2016-10-20  2:45     ` Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 03/16] libmbim: Fix " Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 04/16] libplist: Squash warnings found by clang Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 05/16] frame: Fix build with clang Khem Raj
2016-10-19  5:38 ` [meta-python][PATCH 06/16] python-greenlet: Rename register from rX to xX for aarch64 Khem Raj
2016-10-19  5:38 ` [meta-multimedia][PATCH 07/16] libdc1394: Upgrade to 2.2.4 Khem Raj
2016-10-19  5:38 ` [meta-networking][PATCH 08/16] lowpan-tools: Fix errors found with clang Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 09/16] gpm: Remove nested functions Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 10/16] flashrom: Fix build with clang and aarch64 Khem Raj
2016-10-19  5:38 ` [meta-networking][PATCH 11/16] openl2tp: Fix build with clang Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 12/16] glcompbench: Demand c++11 explicitly Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 13/16] joe: Fix build with clang Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 14/16] fwts: Update to 16.09 release Khem Raj
2016-10-25 13:29   ` Martin Jansa [this message]
2016-10-19  5:38 ` [meta-networking][PATCH 15/16] libmnl, nftables: Update versions Khem Raj
2016-10-19  5:38 ` [meta-oe][PATCH 16/16] mg: Update to 20161005 Khem Raj
2016-10-19 20:06 ` [meta-oe][PATCH 01/16] boinc: Add recipe for boinc-client akuster808
2016-10-25 13:32 ` Martin Jansa
2016-10-25 13:49   ` Khem Raj

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=20161025132947.GB2911@jama \
    --to=martin.jansa@gmail.com \
    --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.