From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ZX3gb-0001lI-33 for ptxdist@pengutronix.de; Wed, 02 Sep 2015 10:46:29 +0200 Received: from [172.17.34.152] (unknown [172.17.34.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: mkl@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id D79E08DCDB for ; Wed, 2 Sep 2015 08:46:27 +0000 (UTC) References: <55E6B0AD.1000207@pengutronix.de> From: Marc Kleine-Budde Message-ID: <55E6B760.1090008@pengutronix.de> Date: Wed, 2 Sep 2015 10:46:24 +0200 MIME-Version: 1.0 In-Reply-To: Subject: Re: [ptxdist] Script List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============1242170979==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1242170979== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bEhqhfE3mqAfcCMqDAIopCeCH5D5Dt0nV" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bEhqhfE3mqAfcCMqDAIopCeCH5D5Dt0nV Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/02/2015 10:35 AM, Hardik A Gohil wrote: > Hello >=20 > On Wed, Sep 2, 2015 at 4:17 PM, Marc Kleine-Budde > wrote: >=20 > On 09/02/2015 09:44 AM, Hardik A Gohil wrote: > > Hello, > > > > Can any one explain me this script from > > rules/post/ptxd_make_image_common.make used while creating root.u= bifs image > > > > DOPERMISSIONS :=3D '{ \ > > if ($$1 =3D=3D "f") \ > > printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n"= , $$5, > > $$2, $$3, $$4, $$2); \ > > if ($$1 =3D=3D "n") \ > > printf("rm -f \".%s\"; mkdir -p \".`dirname \"%s\= "`\"; > > mknod -m %s \".%s\" %s %s %s; chown %s.%s \".%s\";\n", $$2, $$2, = $$5, > > $$2, $$6, $$7, $$8, $$3, $$4, $$2);}' >=20 > This scripts generates chmod, chown commands to change the ownershi= p and > permission of a file or generates commands to create device nodes w= ith > given ownership and permissions. >=20 >=20 > awk -F: $(DOPERMISSIONS) $(image/permissions) called from here >=20 > I cannot find image/permissions file ?? =2E/rules/post/000_ptxd_make_image_definitions.make:12:image/permissions :=3D $(IMAGEDIR)/permissions Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --bEhqhfE3mqAfcCMqDAIopCeCH5D5Dt0nV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJV5rdgAAoJEP5prqPJtc/HKoIH/3EarNRkq/jSKb8/Qv1YBW9+ 2ysQs/7VFcCYkUxK/Dx+itvD2pX0W1xwygX524SVreYPOyiGSz/nqxz4B7ylap68 eEJ9rna9VAIiIWHkmcMYXb2NZSCeAcqEOG6FohmmAKPL9wmQ9JEp0bDbjLzpTDEK dfX7+qDb2Vec5rNTowRRH7opNK+djQoEWTq25CU8Urnbchr6XcCtjuQdi65BWKVk dblQPCjJwfANEkYr0CLtox+uvPmlvINF89Tbt4+nO11TsezTlD5ZNy4TB+qTHm0g ypUCHgmrLsUKwGB6AXkTTCROcFMM23V9DGUmPrTDs/pR4ik6RXyCrhX2ZxWFKio= =HP+Y -----END PGP SIGNATURE----- --bEhqhfE3mqAfcCMqDAIopCeCH5D5Dt0nV-- --===============1242170979== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXguZGUK --===============1242170979==--