From patchwork Mon Apr 13 09:23:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cedric Hombourger X-Patchwork-Id: 1269753 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::13f; helo=mail-lf1-x13f.google.com; envelope-from=swupdate+bncbdq3rtfxvmlbbtw72d2akgqekleb2ey@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mentor.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=W2/mT2/k; dkim-atps=neutral Received: from mail-lf1-x13f.google.com (mail-lf1-x13f.google.com [IPv6:2a00:1450:4864:20::13f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49139K1mr8z9sSX for ; Mon, 13 Apr 2020 19:24:36 +1000 (AEST) Received: by mail-lf1-x13f.google.com with SMTP id v22sf3562807lfa.1 for ; Mon, 13 Apr 2020 02:24:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1586769871; cv=pass; d=google.com; s=arc-20160816; b=CzuwSEqiQRFbLuf28z/rdCNr3spdbjWi9cZeXqPsDyABH+HxKcZ0am/OPCshR7FT27 XWCG/0nOUF+G0Cb66isAgNSwlngcY9BMzetSGntaKwHBZCWBygvbXJHqNNrflbhEdfCy Gd5Zdrd7gLJWPTwSv1B0jZOnAGt+eEJt8AYrgzkIF9ry9DsuFUyHodZis19fc+KH+dVB XiLxpZ5lwW5JMHX7E7zehA1lNEmUvXnnI8aSvSbOl6h98gPcPLJj5s21UtxA7bEg07d4 xbS5dyyvmF/gw4gOL1Q6wES4tWCzgdMQz71EpNI0XosNnf3eEuZRD/nJIOicpi8D7wc3 5shg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr:sender :dkim-signature; bh=2lefl/xNWdY8s4U2u6j7xAHDyWnfUV2/1W8r6CaDRdQ=; b=UrRsK9+6FGI+OAbaaLHmpAyR2LDnOE/FbfXXlLOZ9dUT7+FRhc6mecZ6aXt6LFsFtL Z6KcIoONdFcJj7UQmzzty+xZqCXVLa4o7cdsjGrtzfpaOXW+dSF4Ak/013B3GkWo+jSx 7quLkMghZCTf3clJw8iFksas+uFG6ZhdrZ88gd5oU0P/JD0Fe2Ud2kxJKd/6bzpBxcTC 0vrKLQShXZ6dYp/ieUJ6Z2lFjpbGLEIyxmZ8Xs127MXjUBNp+BEXETsbDKEjlFDkOJDp 46GzwpflXV/0E/bBRBA+2hY4fCL/SwEvZaAJ1HvqfGe/i9JMlkpduF29JgwApCm7AUX+ mMrA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:ironport-sdr:ironport-sdr:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=2lefl/xNWdY8s4U2u6j7xAHDyWnfUV2/1W8r6CaDRdQ=; b=W2/mT2/k6PsPtaZUGQLo+3ESQdYqryNktKs3WYOn5tKLm9X0Gddb9v+/qzXREgLfld h/A8xVsMTA8DizimdQJcKfg3DoIW646U+h7pXwennNZXkFJDvvkGKMgvZ3ONv+Gk86JJ 08Kcvc0BkrF70LanmD9X9THbWon9zHaGeew8kcdWRVcsJtam5DbpvImZA7699BNzCXv+ r9kNIb66EjtERkL87xWsTj9Tb84GuEuKYSVce+Y4xiIJoTpfOl87pKfcwjCplEml4P2q cD3stqQHnBADrx5gcMSCuIBsKi3wMGVv5lz539y0IAB9zKjHg67rvLrSVAvilghAVR/L EPWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:ironport-sdr:ironport-sdr:from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=2lefl/xNWdY8s4U2u6j7xAHDyWnfUV2/1W8r6CaDRdQ=; b=smwZqSC84odJizf7AdLMgRIpIVI0GekfmCKapY/NriSy/6zylivvfjgzF7qvz+jAmx cV4cw3qFpy1Q84sO2gqcisZw4q2Y3jRTVmIaAE09Y/SnZ2KuMUVJr/wcIBQRhdJsSarZ QXjXrAaO9c0uA6Sb8KMVH3tgB26Vgw4cQrEfh6I8OF1iZzosjEbOXKbdvZMyRgAG+shQ eZDeYcGQ1HGjvzg2yiHt2Wr/Q7odM+lzBSwsZ0t5NZHShdGxsIN2SZSsm43vNr/BPkMW XBgPlRqkI1qK+/YKTLQ/LmTafeRq5BHXrImuKoSGpxMNIDBXlFcz7Ci6+OGvlkT0B/AV 8w4Q== Sender: swupdate@googlegroups.com X-Gm-Message-State: AGi0Puass8DNXNMieVtzD5dNbnhYmWEM9MiqCwY9xEBnlfj2bX5+qUjB QUN2Jjw0+rbTk/gnHNQm7xI= X-Google-Smtp-Source: APiQypKjYfSOEESenN36A/Epay6vcDv5khNibIoAPTy0MNMKKIJZSitrHzXvWAoeuBinxoNn62FBHg== X-Received: by 2002:ac2:528f:: with SMTP id q15mr1479812lfm.132.1586769871276; Mon, 13 Apr 2020 02:24:31 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:ac2:5186:: with SMTP id u6ls512150lfi.5.gmail; Mon, 13 Apr 2020 02:24:30 -0700 (PDT) X-Received: by 2002:a19:224e:: with SMTP id i75mr9936596lfi.22.1586769870355; Mon, 13 Apr 2020 02:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586769870; cv=none; d=google.com; s=arc-20160816; b=cu6vSGFc6kMFPuj3QYsurhy8IUz57Tn/WSdMOMRAWCItTuaYKZ2oCIn4KTutkyGuVl IS6eeK+u/tcOQFX284gOozE4xA6vAFkdd5atrTmRndErSUQaklvGLQqnrhC58YNxP1jh WFnUzjSc8T7s9iuCgTQbyoePvr5G6Ot90kfQ6qOhxBL+vrACDIf8129kmx5lSyO9uaZk GIim7A05b5nEtpZjOzjhX4/1joPkuzcCaMeU84bKsVYI2PDwc6P3tsOXV2xerQ+9k+KH uGa1mjdwJIYKV9nTDFquPUeuNBFyFbT9054IrKhF4I5wojWkg6l+qGVye51ghcnklMPM cUlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=piUequSLpf4LV8EiYYTEFWsKm3gqF2W7GKiYqXe653A=; b=t8Zs7bcpsO1PmyRoRb7VERw6LEX5TzIk/QL7fJe3wef9OSDkt77E4Y6hIzDI9aJ0a+ y7a1WNnpLVIetc2n7VCN3EbrMnMoQRcrtBIcMO+faCh3b8SBoX6yIgyAZS2gba7f1quF eoW5JvmbCBhePgAnqzOf44Q9PzGgkqSak4+588nv204PSUlvQWyiWwK4RWKlplTV7gG5 TzKNho6Xz2M+LMkztYMsN/3VFYF2z0LU6/jMcVKWZnmr0c/d4oSUfIaFF+hvuT1c/zhE Mm2Odjd3baxO/OIcGjC8a03iDOX2xGpJroj+JSOEsDPXz1ojNCOkDFBNp5swv4ovbPEL l7WA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from esa3.mentor.iphmx.com (esa3.mentor.iphmx.com. [68.232.137.180]) by gmr-mx.google.com with ESMTPS id s4si580210ljj.2.2020.04.13.02.24.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2020 02:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) client-ip=68.232.137.180; IronPort-SDR: KTqt2H5YpVRtiAIREn4mFhV28/e1w4yVLTEeijDSfYPwdMailEWWRhf5Z4K757DuATtrjvrQnG ci8M/F1lFi2kjUttal4EQVHfkSdquyXVp3mviEC2h4ct5CPHTYkdn4IP8YEEwKXVoNLmKbosP2 WRIGrLimYUEwYwPGIInwTixkdGsBjdNHZQ7A39kaLLqFOwAPCamdKmm+GgoPFaMgGiEvAnyoRZ DDpz6chEmSv/iDSnO8OQaLBFbeIaBDQb/ncaipQfWIml05nOhq066scOcEH4tXuhgFhDvptpCD WHU= X-IronPort-AV: E=Sophos;i="5.72,378,1580803200"; d="scan'208";a="47683599" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa3.mentor.iphmx.com with ESMTP; 13 Apr 2020 01:24:27 -0800 IronPort-SDR: /1RIHPi/LSXp6fkNKtDXmcowJn9Vdj9L7tXKfl1lZ6T4IfodHle0sL3io2uEulIrdV+uGxF/UH x3nnmHqY5pjB/vePU74InxO8y3rxDalgB2Yd0VcOhfYDYtzmNqW1X5xnpd+d+O6Bi3O+t3smTX y3Ka7EyjvgrjMhnHcW+gMDargt3Zvfa4WxugfKlFCFxbfM0+VNaaZ7z2DfFLKT99KotZBFYAsY o7IDnkt8uhjwW3TacW7aK7PKkCVBnyN66TZZs5yGdkpi23UUO+rAL6FGcGjDrNFZfU/1sweVWh ilA= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [swupdate] [PATCH] test: make requirement for gawk explicit Date: Mon, 13 Apr 2020 11:23:56 +0200 Message-ID: <1586769836-310-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-Original-Sender: cedric_hombourger@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.137.180 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , The awk code used to translate wrapper declarations into linker options requires features from GNU Awk. Systems with awk == mawk will silently fail to produce a list -Wl,--wrap options (a null string is returned in the shell expansion). Signed-off-by: Cedric Hombourger --- test/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Makefile b/test/Makefile index 073fe6a..2b2070a 100644 --- a/test/Makefile +++ b/test/Makefile @@ -35,7 +35,7 @@ EXTRA_LDFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_LDFLAGS)))#")) endif ## transfer __mock_*() functions to according linker flags via rudimentary regex awk parsing -LDMOCKS = `/usr/bin/awk '/^[^(extern)|(static)]*([\*_[:alnum:]]+[[:blank:]]+)+[\*]*__wrap_/{where = match($$0,"__wrap_[_[:alnum:]]+"); if (RSTART > 0) { print "-Wl,--wrap=" substr($$0, RSTART+7, RLENGTH-7);}}' $(basename $@).c` +LDMOCKS = `/usr/bin/gawk '/^[^(extern)|(static)]*([\*_[:alnum:]]+[[:blank:]]+)+[\*]*__wrap_/{where = match($$0,"__wrap_[_[:alnum:]]+"); if (RSTART > 0) { print "-Wl,--wrap=" substr($$0, RSTART+7, RLENGTH-7);}}' $(basename $@).c` quiet_cmd_linktestexe = LD $(basename $@) cmd_linktestexe = $(srctree)/scripts/trylink \