iucode-tool: Add support for MUSL

iucode-tool needs the arpg API which is not part of MUSL, so add argp-standalone as
a dependency. The arpg library is also required for linking, so add a patch to
the Makefile.am, which is added again based on tclib being MUSL

Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
Saul Wold 2017-02-03 11:25:58 -08:00
parent bb6021a093
commit b5b93ad3ee
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From 5f6826b3a59dedf508d5a6122362d69a4813e8e6 Mon Sep 17 00:00:00 2001
From: Saul Wold <sgw@linux.intel.com>
Date: Fri, 3 Feb 2017 16:08:51 -0800
Subject: [PATCH] Makefile.am: Add arg-parse library for MUSL support
iucode-tool needs argp-standalone when used with MUSL, so add this
patch to the Makefile to link with argp
Upstream-Status: Pending
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
Makefile.am | 1 +
1 file changed, 1 insertion(+)
diff --git a/Makefile.am b/Makefile.am
index 415a241..764fb61 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,6 +5,7 @@
sbin_PROGRAMS = iucode_tool
man_MANS = iucode_tool.8
+iucode_tool_LDADD = -largp
iucode_tool_SOURCES = intel_microcode.h intel_microcode.c iucode_tool.c
EXTRA_DIST = autogen.sh CONTRIBUTING
--
2.7.4

View File

@ -16,7 +16,11 @@ LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
file://iucode_tool.c;beginline=1;endline=15;md5=5d8e3639c3b6a80e7d5e0e073933da16"
DEPENDS_append_libc-musl = " argp-standalone"
SRC_URI = "https://gitlab.com/iucode-tool/releases/raw/master/iucode-tool_${PV}.tar.xz"
SRC_URI_append_libc-musl = " file://0001-Makefile.am-Add-arg-parse-library-for-MUSL-support.patch"
SRC_URI[md5sum] = "306d20b43da847812af4bf973f46045d"
SRC_URI[sha256sum] = "8f94ec73f5d4d1a6801aaa894fa1c6544d9b27aec16e1a00e18e8241c7e0f6ba"