serialcheck: Fix build with musl and mark BROKENCLEAN

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Khem Raj 2016-03-31 17:10:36 +00:00 committed by Martin Jansa
parent c7cb15542e
commit af7c9165fc
2 changed files with 41 additions and 2 deletions

View File

@ -0,0 +1,34 @@
From efc8a4e717ba919c869c2da1c7de2d08bc976926 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 24 Feb 2016 18:48:07 +0000
Subject: [PATCH] Makefile: Change order of link flags
This helps in injectcting LDFLAGS from env to take effect
as it appears last on cmdline now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending
Makefile | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index ba2bfbb..6d13e68 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
-CFLAGS=-O2 -Wall -Wextra -g -Wno-sign-compare -Wno-pointer-sign
-CC=gcc
+CFLAGS?=-O2 -Wall -Wextra -g -Wno-sign-compare -Wno-pointer-sign
+CC?=gcc
all: serialcheck
+serialcheck : serialcheck.o
+ $(CC) -o serialcheck serialcheck.o $(CFLAGS) $(LDFLAGS)
+
+%.o : %.c
+ $(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@
+
--
1.9.1

View File

@ -4,16 +4,20 @@ LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
SRC_URI = "git://git.breakpoint.cc/bigeasy/serialcheck.git \
file://0001-Add-option-to-enable-internal-loopback.patch \
file://0002-Restore-original-loopback-config.patch"
file://0001-Add-option-to-enable-internal-loopback.patch \
file://0002-Restore-original-loopback-config.patch \
file://0001-Makefile-Change-order-of-link-flags.patch \
"
SRCREV = "63854a2d0c0129efab132ec328a75279e013fb84"
S = "${WORKDIR}/git"
DEPENDS_append_libc-musl = " argp-standalone"
EXTRA_OEMAKE = "-e MAKEFLAGS="
CFLAGS_prepend = "-Wall -Wextra -Wno-sign-compare -Wno-pointer-sign "
LDFLAGS_append_libc-musl = " -largp"
do_install() {
install -d ${D}${bindir}
@ -21,5 +25,6 @@ do_install() {
install -d ${D}${docdir}/${BP}
install ${S}/Readme.txt ${D}${docdir}/${BP}
}
CLEANBROKEN = "1"
BBCLASSEXTEND = "nativesdk"