From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-yk0-f174.google.com ([209.85.160.174]) by metis.ext.pengutronix.de with esmtps (TLS1.2:RSA_ARCFOUR_SHA1:128) (Exim 4.80) (envelope-from ) id 1ZX3W4-00012Q-6L for ptxdist@pengutronix.de; Wed, 02 Sep 2015 10:35:43 +0200 Received: by ykek143 with SMTP id k143so2605482yke.2 for ; Wed, 02 Sep 2015 01:35:28 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <55E6B0AD.1000207@pengutronix.de> References: <55E6B0AD.1000207@pengutronix.de> Date: Wed, 2 Sep 2015 16:35:28 +0800 Message-ID: From: Hardik A Gohil 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="===============1188281476==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de --===============1188281476== Content-Type: multipart/alternative; boundary=001a113a6aaa82b9e1051ebf8cac --001a113a6aaa82b9e1051ebf8cac Content-Type: text/plain; charset=UTF-8 Hello On Wed, Sep 2, 2015 at 4:17 PM, Marc Kleine-Budde wrote: > 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.ubifs > image > > > > DOPERMISSIONS := '{ \ > > if ($$1 == "f") \ > > printf("chmod %s \".%s\"; chown %s.%s \".%s\";\n", $$5, > > $$2, $$3, $$4, $$2); \ > > if ($$1 == "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);}' > > This scripts generates chmod, chown commands to change the ownership and > permission of a file or generates commands to create device nodes with > given ownership and permissions. > > awk -F: $(DOPERMISSIONS) $(image/permissions) called from here I cannot find image/permissions file ?? -- Regards Hardik A Gohil Willowglen Msc Bhd --001a113a6aaa82b9e1051ebf8cac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello

On Wed, Sep 2, 2015 at 4:17 PM, Marc Kleine-Budde <mkl@pengutron= ix.de> wrote:
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.ubifs = image
>
> DOPERMISSIONS :=3D '{=C2=A0 =C2=A0 =C2=A0\
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if ($$1 =3D=3D "f") \
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0printf(&q= uot;chmod %s \".%s\"; chown %s.%s \".%s\";\n", $$5= ,
> $$2, $$3, $$4, $$2);=C2=A0 =C2=A0 \
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if ($$1 =3D=3D "n") \
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0printf(&q= uot;rm -f \".%s\"; mkdir -p \".`dirname \"%s\"`\&q= uot;;
> mknod -m %s \".%s\" %s %s %s; chown %s.%s \".%s\";= \n", $$2, $$2, $$5,
> $$2, $$6, $$7, $$8, $$3, $$4, $$2);}'

This scripts generates chmod, chown commands to change the ownership= and
permission of a file or generates commands to create device nodes with
given ownership and permissions.


awk -F: $(DOPERMISSIONS) $(image/permissions) called from here
I cannot find image/permissions file ??
--
Regards
Hardik A Gohil
Willowglen Msc Bhd

<= /div>
--001a113a6aaa82b9e1051ebf8cac-- --===============1188281476== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline LS0gCnB0eGRpc3QgbWFpbGluZyBsaXN0CnB0eGRpc3RAcGVuZ3V0cm9uaXguZGUK --===============1188281476==--