From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0060.outbound.protection.outlook.com [104.47.42.60]) by dpdk.org (Postfix) with ESMTP id 72E086CB1 for ; Fri, 8 Jul 2016 15:27:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anovadata.onmicrosoft.com; s=selector1-anovadata-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PysxVplhhE8v0Pwa7YIR1FTOV32lC9xxpKVZWX/Bdlg=; b=ACLAIOPvTDHSG5NQAEUhJEB2TfKdTSrzPf+mU4TVVORqUMjeAye6AO0edl57KntfXVKrK6WyTXruhlItycjz7cYR01ttajHvyEKiUf7UsAeVDOO214ZFzJERRZZpuxBv9+7n5oloYanlHUZfrlvAnciHcC/7o/mqLYSB/vnDwUk= Received: from CY1PR11MB0556.namprd11.prod.outlook.com (10.163.145.143) by CY1PR11MB0553.namprd11.prod.outlook.com (10.163.145.140) with Microsoft SMTP Server (TLS) id 15.1.528.16; Fri, 8 Jul 2016 13:27:29 +0000 Received: from CY1PR11MB0556.namprd11.prod.outlook.com ([10.163.145.143]) by CY1PR11MB0556.namprd11.prod.outlook.com ([10.163.145.143]) with mapi id 15.01.0528.024; Fri, 8 Jul 2016 13:27:29 +0000 From: Ned Kittlitz To: "users@dpdk.org" Thread-Topic: mk/rte.vars.mk testopt, not Thread-Index: AdHYlegaiUSnLMtZS1qZituwd1+8KAAhoX9Q Date: Fri, 8 Jul 2016 13:27:29 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=nkittlitz@anovadata.com; x-originating-ip: [108.7.45.34] x-ms-office365-filtering-correlation-id: 5cb5ee48-1647-40a9-c866-08d3a7339c25 x-microsoft-exchange-diagnostics: 1; CY1PR11MB0553; 6:WA6GWBYu0TyFKqH4c66io2r5oiEJwl4h32rLwKgY3/FyrijypP7B0Cx2OctuLUTShc074lG8c2pDZh8kU3+jdoeomZq06O4kvdpKXqcfninpvTpIO9AKRvg0DBNE4BtTeYsYipZXtkzYiw/nfe2Sdh3Elf1N85qtlsfzsCNSC36V7RNi4bhrJo5EvkAF7676Dk7H0vtx+XNagnoHLA52jCz2wBD5LJcKbxuKgYZWW2rtaWzwC9BhrxI9tqYir9haRNjC7RbpupINHpZNGkOgItS8JpSFS3UR7fDFuJTT885Jr+aWYCT4NxsIaXeZhcR0; 5:nVhduGP4mDaeEHgMw4QzzYe2WjO20QOgaDWh0AA9v2MHB1U9V4AYj/TXln3jQIJQAMVSJnVaY2D4iMDCxN5ul/bNt6ivNeogga+8Ky3TYLXJ1+Mlz41HVNBh9hoSw2StxahvmaRY31FZEbDOu04iVA==; 24:l2uXrr6mZ6dpm5wo9iRvueIYxvh/W0jpD/czUboPC6tAkVN5+ehs7RsMR5v6HOS4oz5wNEqJ4+iSvfZEAGZUV5m/g+8AnDO/NBEviPcfP/4=; 7:e+dGKGKZibiB2gXqA/IctjXUW4iuyr0/AbFPO67Z1JOWXMSpSjPvFnFj1BuYn+2dPTbioGEax2vIVJFsCsJ86aHk27XO2ETk5qk5h5yRsWgLlhUBowaLdsgKO5pRIV904Hm82uperGijaxCkQgCxUua4ExSMX1M8iAyvvTQPbUmmEkIfPiI37hPdM3MzXrjiOw7yg22voQZJA13nLqTlPS5njs3Mb1UPxUqMHs2geaQBasNQYh950LdMqIr5OFVA x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR11MB0553; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040130)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041072)(6043046); SRVR:CY1PR11MB0553; BCL:0; PCL:0; RULEID:; SRVR:CY1PR11MB0553; x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(199003)(189002)(10400500002)(87936001)(66066001)(11100500001)(2351001)(19580395003)(92566002)(68736007)(586003)(106356001)(450100001)(105586002)(5002640100001)(86362001)(3660700001)(3846002)(6116002)(8936002)(2906002)(99286002)(9686002)(76576001)(102836003)(3280700002)(74316002)(50986999)(54356999)(5640700001)(2501003)(1730700003)(8676002)(110136002)(101416001)(81156014)(122556002)(81166006)(189998001)(7696003)(97736004)(33656002)(5003600100003)(77096005)(305945005)(7846002)(7736002)(107886002)(229853001)(2900100001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR11MB0553; H:CY1PR11MB0556.namprd11.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: anovadata.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: anovadata.com X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2016 13:27:29.2402 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 38b999c7-7f6e-499b-93fe-7e9b38613635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR11MB0553 Subject: [dpdk-users] mk/rte.vars.mk testopt, not X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2016 13:27:30 -0000 Hello, can somebody please explain what is the purpose of these lines in mk/rte.va= rs.mk? # helper: return y if option is set to y, else return an empty string testopt =3D $(if $(strip $(subst y,,$(1)) $(subst $(1),,y)),,y) # helper: return an empty string if option is set, else return y not =3D $(if $(strip $(subst y,,$(1)) $(subst $(1),,y)),,y) I've grepped over the full 16.04 source and there are no other "testopt" hi= ts. I also grepped over all Makefile and *.mk files for "not" and nothing looks= interesting. I did some quick searching for testopt and gnu make, in case it was some ki= nd of magical thing, but didn't find anything there, either. DETAILS: I'm working with somebody who is trying to integrate 16.04 into our environ= ment. We already have a complex makefile infrastructure, so we probably ca= nnot just follow the documented procedure of including rte.vars.mk near the= top of the makefile and then including rte.extapp.mk later in the makefile= . Our standard app makefiles include multiple .mk helper files from our build= infrastructure. Right now our developer can get his external app to build by defining RTE_S= DK and RTE_TARGET variables in his makefile, then including $(RTE_SDK)/mk/r= te.vars.mk first. But if we move the rte.vars.mk include down, it is apparently damaging some= thing that one of our other mk helpers established. I suppose the "SRCDIR"= lines are the most likely culprits, but I wanted to understand the testopt= /not too. Thank you, Ned