diff options
Diffstat (limited to 'recipes-core/runx/runx/0001-make-initrd-cross-install-tweaks.patch')
-rw-r--r-- | recipes-core/runx/runx/0001-make-initrd-cross-install-tweaks.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/recipes-core/runx/runx/0001-make-initrd-cross-install-tweaks.patch b/recipes-core/runx/runx/0001-make-initrd-cross-install-tweaks.patch deleted file mode 100644 index 43c621e0..00000000 --- a/recipes-core/runx/runx/0001-make-initrd-cross-install-tweaks.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From d8bd5749e6fc6e0c86a8720044ec78167bab3569 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@xilinx.com> | ||
3 | Date: Mon, 16 Dec 2019 22:03:14 -0800 | ||
4 | Subject: [PATCH] make-initrd: cross install tweaks | ||
5 | |||
6 | Signed-off-by: Bruce Ashfield <bruce.ashfield@xilinx.com> | ||
7 | --- | ||
8 | kernel/make-initrd | 18 ++++++++++++++++-- | ||
9 | 1 file changed, 16 insertions(+), 2 deletions(-) | ||
10 | |||
11 | Index: git/initrd/make-initrd | ||
12 | =================================================================== | ||
13 | --- git.orig/initrd/make-initrd | ||
14 | +++ git/initrd/make-initrd | ||
15 | @@ -23,8 +23,22 @@ | ||
16 | mkdir -p $tmpdir/lib | ||
17 | mkdir -p $tmpdir/var | ||
18 | mkdir -p $tmpdir/mnt | ||
19 | -cp "$busybox" $tmpdir/bin/busybox | ||
20 | -$tmpdir/bin/busybox --install $tmpdir/bin | ||
21 | + | ||
22 | + | ||
23 | +if [ -z "$BUSYBOX" ]; then | ||
24 | + BUSYBOX=`which busybox` | ||
25 | +fi | ||
26 | +cp $BUSYBOX $tmpdir/bin | ||
27 | +if [ -n "$CROSS_COMPILE" ]; then | ||
28 | + echo "cross compiling, busybox --install emulation" | ||
29 | + if [ -n "$QEMU_USER" ]; then | ||
30 | + $QEMU_USER $tmpdir/bin/busybox --install $tmpdir/bin | ||
31 | + else | ||
32 | + echo "QEMU_USER is not defined, no binary symlinks will be available" | ||
33 | + fi | ||
34 | +else | ||
35 | + $tmpdir/bin/busybox --install $tmpdir/bin | ||
36 | +fi | ||
37 | |||
38 | mkdir -p $tmpdir/etc/init.d | ||
39 | cp $init $tmpdir/etc/init.d/rcS | ||