summaryrefslogtreecommitdiffstats
path: root/scripts/native-intercept
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:31:53 +0000
commit8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch)
treeefdc32587159d0050a69009bdf2330a531727d95 /scripts/native-intercept
parentd412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff)
downloadpoky-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-xscripts/native-intercept/ar32
-rwxr-xr-xscripts/native-intercept/chgrp5
-rwxr-xr-xscripts/native-intercept/chown5
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
5import os
6import shutil
7import sys
8
9# calculate path to the real 'ar'
10path = os.environ['PATH']
11path = path.replace(os.path.dirname(sys.argv[0]), '')
12real_ar = shutil.which('ar', path=path)
13
14if len(sys.argv) == 1:
15 os.execl(real_ar, 'ar')
16
17# modify args to mimic 'ar' configured with --default-deterministic-archives
18argv = sys.argv
19if argv[1].startswith('--'):
20 # No modifier given
21 None
22else:
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
32os.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#
5echo "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#
5echo "Intercept $0: $@ -- do nothing"