diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /scripts/native-intercept | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/native-intercept')
| -rwxr-xr-x | scripts/native-intercept/ar | 32 | ||||
| -rwxr-xr-x | scripts/native-intercept/chgrp | 5 | ||||
| -rwxr-xr-x | scripts/native-intercept/chown | 5 |
3 files changed, 0 insertions, 42 deletions
diff --git a/scripts/native-intercept/ar b/scripts/native-intercept/ar deleted file mode 100755 index dcc623e3ed..0000000000 --- a/scripts/native-intercept/ar +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | #!/usr/bin/env python3 | ||
| 2 | # | ||
| 3 | # Wrapper around 'ar' that defaults to deterministic archives | ||
| 4 | |||
| 5 | import os | ||
| 6 | import shutil | ||
| 7 | import sys | ||
| 8 | |||
| 9 | # calculate path to the real 'ar' | ||
| 10 | path = os.environ['PATH'] | ||
| 11 | path = path.replace(os.path.dirname(sys.argv[0]), '') | ||
| 12 | real_ar = shutil.which('ar', path=path) | ||
| 13 | |||
| 14 | if len(sys.argv) == 1: | ||
| 15 | os.execl(real_ar, 'ar') | ||
| 16 | |||
| 17 | # modify args to mimic 'ar' configured with --default-deterministic-archives | ||
| 18 | argv = sys.argv | ||
| 19 | if argv[1].startswith('--'): | ||
| 20 | # No modifier given | ||
| 21 | None | ||
| 22 | else: | ||
| 23 | # remove the optional '-' | ||
| 24 | if argv[1][0] == '-': | ||
| 25 | argv[1] = argv[1][1:] | ||
| 26 | if 'U' in argv[1]: | ||
| 27 | sys.stderr.write("ar: non-deterministic mode requested\n") | ||
| 28 | else: | ||
| 29 | argv[1] = argv[1].replace('u', '') | ||
| 30 | argv[1] = 'D' + argv[1] | ||
| 31 | |||
| 32 | os.execv(real_ar, argv) | ||
diff --git a/scripts/native-intercept/chgrp b/scripts/native-intercept/chgrp deleted file mode 100755 index 399c979f9a..0000000000 --- a/scripts/native-intercept/chgrp +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 4 | # | ||
| 5 | echo "Intercept $0: $@ -- do nothing" | ||
diff --git a/scripts/native-intercept/chown b/scripts/native-intercept/chown deleted file mode 100755 index 399c979f9a..0000000000 --- a/scripts/native-intercept/chown +++ /dev/null | |||
| @@ -1,5 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | # | ||
| 3 | # SPDX-License-Identifier: GPL-2.0-only | ||
| 4 | # | ||
| 5 | echo "Intercept $0: $@ -- do nothing" | ||
