All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kbuild: Make scripts executable
@ 2014-08-20 14:10 Michal Marek
  2014-08-21  3:25 ` Masahiro Yamada
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Marek @ 2014-08-20 14:10 UTC (permalink / raw)
  To: linux-kbuild; +Cc: linux-kernel

The Makefiles call the respective interpreter explicitly, but this makes
it easier to use the scripts manually.

Signed-off-by: Michal Marek <mmarek@suse.cz>
---
 scripts/bootgraph.pl                       | 0
 scripts/export_report.pl                   | 0
 scripts/gcc-goto.sh                        | 0
 scripts/gcc-ld                             | 0
 scripts/gcc-version.sh                     | 0
 scripts/gcc-x86_32-has-stack-protector.sh  | 0
 scripts/gcc-x86_64-has-stack-protector.sh  | 0
 scripts/gen_initramfs_list.sh              | 0
 scripts/headers_check.pl                   | 0
 scripts/headers_install.sh                 | 0
 scripts/kconfig/lxdialog/check-lxdialog.sh | 0
 scripts/kconfig/streamline_config.pl       | 0
 scripts/link-vmlinux.sh                    | 0
 scripts/markup_oops.pl                     | 0
 scripts/mkmakefile                         | 0
 scripts/mksysmap                           | 0
 scripts/package/builddeb                   | 0
 scripts/package/buildtar                   | 0
 scripts/profile2linkerlist.pl              | 0
 scripts/rt-tester/rt-tester.py             | 0
 scripts/selinux/install_policy.sh          | 0
 scripts/tracing/draw_functrace.py          | 0
 scripts/xz_wrap.sh                         | 0
 23 files changed, 0 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 scripts/bootgraph.pl
 mode change 100644 => 100755 scripts/export_report.pl
 mode change 100644 => 100755 scripts/gcc-goto.sh
 mode change 100644 => 100755 scripts/gcc-ld
 mode change 100644 => 100755 scripts/gcc-version.sh
 mode change 100644 => 100755 scripts/gcc-x86_32-has-stack-protector.sh
 mode change 100644 => 100755 scripts/gcc-x86_64-has-stack-protector.sh
 mode change 100644 => 100755 scripts/gen_initramfs_list.sh
 mode change 100644 => 100755 scripts/headers_check.pl
 mode change 100644 => 100755 scripts/headers_install.sh
 mode change 100644 => 100755 scripts/kconfig/lxdialog/check-lxdialog.sh
 mode change 100644 => 100755 scripts/kconfig/streamline_config.pl
 mode change 100644 => 100755 scripts/link-vmlinux.sh
 mode change 100644 => 100755 scripts/markup_oops.pl
 mode change 100644 => 100755 scripts/mkmakefile
 mode change 100644 => 100755 scripts/mksysmap
 mode change 100644 => 100755 scripts/package/builddeb
 mode change 100644 => 100755 scripts/package/buildtar
 mode change 100644 => 100755 scripts/profile2linkerlist.pl
 mode change 100644 => 100755 scripts/rt-tester/rt-tester.py
 mode change 100644 => 100755 scripts/selinux/install_policy.sh
 mode change 100644 => 100755 scripts/tracing/draw_functrace.py
 mode change 100644 => 100755 scripts/xz_wrap.sh

diff --git a/scripts/bootgraph.pl b/scripts/bootgraph.pl
old mode 100644
new mode 100755
diff --git a/scripts/export_report.pl b/scripts/export_report.pl
old mode 100644
new mode 100755
diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh
old mode 100644
new mode 100755
diff --git a/scripts/gcc-ld b/scripts/gcc-ld
old mode 100644
new mode 100755
diff --git a/scripts/gcc-version.sh b/scripts/gcc-version.sh
old mode 100644
new mode 100755
diff --git a/scripts/gcc-x86_32-has-stack-protector.sh b/scripts/gcc-x86_32-has-stack-protector.sh
old mode 100644
new mode 100755
diff --git a/scripts/gcc-x86_64-has-stack-protector.sh b/scripts/gcc-x86_64-has-stack-protector.sh
old mode 100644
new mode 100755
diff --git a/scripts/gen_initramfs_list.sh b/scripts/gen_initramfs_list.sh
old mode 100644
new mode 100755
diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl
old mode 100644
new mode 100755
diff --git a/scripts/headers_install.sh b/scripts/headers_install.sh
old mode 100644
new mode 100755
diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
old mode 100644
new mode 100755
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
old mode 100644
new mode 100755
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
old mode 100644
new mode 100755
diff --git a/scripts/markup_oops.pl b/scripts/markup_oops.pl
old mode 100644
new mode 100755
diff --git a/scripts/mkmakefile b/scripts/mkmakefile
old mode 100644
new mode 100755
diff --git a/scripts/mksysmap b/scripts/mksysmap
old mode 100644
new mode 100755
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
old mode 100644
new mode 100755
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
old mode 100644
new mode 100755
diff --git a/scripts/profile2linkerlist.pl b/scripts/profile2linkerlist.pl
old mode 100644
new mode 100755
diff --git a/scripts/rt-tester/rt-tester.py b/scripts/rt-tester/rt-tester.py
old mode 100644
new mode 100755
diff --git a/scripts/selinux/install_policy.sh b/scripts/selinux/install_policy.sh
old mode 100644
new mode 100755
diff --git a/scripts/tracing/draw_functrace.py b/scripts/tracing/draw_functrace.py
old mode 100644
new mode 100755
diff --git a/scripts/xz_wrap.sh b/scripts/xz_wrap.sh
old mode 100644
new mode 100755
-- 
1.8.4.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kbuild: Make scripts executable
  2014-08-20 14:10 [PATCH] kbuild: Make scripts executable Michal Marek
@ 2014-08-21  3:25 ` Masahiro Yamada
  2014-08-21  9:32   ` Michal Marek
  0 siblings, 1 reply; 4+ messages in thread
From: Masahiro Yamada @ 2014-08-21  3:25 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild, linux-kernel

Hi Michal,


On Wed, 20 Aug 2014 16:10:48 +0200
Michal Marek <mmarek@suse.cz> wrote:

> The Makefiles call the respective interpreter explicitly, but this makes
> it easier to use the scripts manually.
> 
> Signed-off-by: Michal Marek <mmarek@suse.cz>


I am not sure at all, but
it seems scripts/checkpatch.pl has a rule
to ban execute permissions.


# Check for incorrect file permissions
                if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
                        my $permhere = $here . "FILE: $realfile\n";
                        if ($realfile !~ m@scripts/@ &&
                            $realfile !~ /\.(py|pl|awk|sh)$/) {
                                ERROR("EXECUTE_PERMISSIONS",
                                      "do not set execute permissions for source files\n" . $permhere);
                        }
                }



Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kbuild: Make scripts executable
  2014-08-21  3:25 ` Masahiro Yamada
@ 2014-08-21  9:32   ` Michal Marek
  2014-08-22  1:27     ` Masahiro Yamada
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Marek @ 2014-08-21  9:32 UTC (permalink / raw)
  To: Masahiro Yamada; +Cc: linux-kbuild, linux-kernel

On 2014-08-21 05:25, Masahiro Yamada wrote:
> Hi Michal,
> 
> 
> On Wed, 20 Aug 2014 16:10:48 +0200
> Michal Marek <mmarek@suse.cz> wrote:
> 
>> The Makefiles call the respective interpreter explicitly, but this makes
>> it easier to use the scripts manually.
>>
>> Signed-off-by: Michal Marek <mmarek@suse.cz>
> 
> 
> I am not sure at all, but
> it seems scripts/checkpatch.pl has a rule
> to ban execute permissions.

I didn't know about this, but the intent of the rule seems to be to
avoid *.c files with execute permissions.


> # Check for incorrect file permissions
>                 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
>                         my $permhere = $here . "FILE: $realfile\n";
>                         if ($realfile !~ m@scripts/@ &&
>                             $realfile !~ /\.(py|pl|awk|sh)$/) {

Here it explicitly skips files below scripts/ and files with known
script suffixes.

Michal

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] kbuild: Make scripts executable
  2014-08-21  9:32   ` Michal Marek
@ 2014-08-22  1:27     ` Masahiro Yamada
  0 siblings, 0 replies; 4+ messages in thread
From: Masahiro Yamada @ 2014-08-22  1:27 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild, linux-kernel

Hi Michal,

On Thu, 21 Aug 2014 11:32:56 +0200
Michal Marek <mmarek@suse.cz> wrote:

> On 2014-08-21 05:25, Masahiro Yamada wrote:
> > Hi Michal,
> > 
> > 
> > On Wed, 20 Aug 2014 16:10:48 +0200
> > Michal Marek <mmarek@suse.cz> wrote:
> > 
> >> The Makefiles call the respective interpreter explicitly, but this makes
> >> it easier to use the scripts manually.
> >>
> >> Signed-off-by: Michal Marek <mmarek@suse.cz>
> > 
> > 
> > I am not sure at all, but
> > it seems scripts/checkpatch.pl has a rule
> > to ban execute permissions.
> 
> I didn't know about this, but the intent of the rule seems to be to
> avoid *.c files with execute permissions.
> 
> 
> > # Check for incorrect file permissions
> >                 if ($line =~ /^new (file )?mode.*[7531]\d{0,2}$/) {
> >                         my $permhere = $here . "FILE: $realfile\n";
> >                         if ($realfile !~ m@scripts/@ &&
> >                             $realfile !~ /\.(py|pl|awk|sh)$/) {
> 
> Here it explicitly skips files below scripts/ and files with known
> script suffixes.
> 

OK then. I replied without understanding this code well.
My appologies.


Best Regards
Masahiro Yamada


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-08-22  1:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-20 14:10 [PATCH] kbuild: Make scripts executable Michal Marek
2014-08-21  3:25 ` Masahiro Yamada
2014-08-21  9:32   ` Michal Marek
2014-08-22  1:27     ` Masahiro Yamada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.