Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 88deee6

Browse files
committed
build: store arch specified binary files into separate path
todo: need add other binary files for aarch64 Signed-off-by: Gao feng <omarapazanadi@gmail.com>
1 parent deb34a8 commit 88deee6

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

build/arch/aarch64/binary/busybox

1.48 MB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

build/make-initrd.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@ mkdir -m 0755 -p /tmp/hyperstart-rootfs/dev \
1212
/tmp/hyperstart-rootfs/proc
1313

1414
cp ../src/hyperstart /tmp/hyperstart-rootfs/init
15-
cp busybox /tmp/hyperstart-rootfs/sbin/
16-
cp iptables /tmp/hyperstart-rootfs/sbin/
17-
cp ipvsadm /tmp/hyperstart-rootfs/sbin/
18-
cp socat /tmp/hyperstart-rootfs/sbin/
19-
cp mount.nfs /tmp/hyperstart-rootfs/sbin/mount.nfs4
15+
if [ "$1"x == "aarch64"x ]; then
16+
ARCHPATH="arch/aarch64"
17+
else
18+
ARCHPATH="arch/x86_64"
19+
fi
20+
cp $ARCHPATH/binary/busybox /tmp/hyperstart-rootfs/sbin/
21+
cp $ARCHPATH/binary/iptables /tmp/hyperstart-rootfs/sbin/
22+
cp $ARCHPATH/binary/ipvsadm /tmp/hyperstart-rootfs/sbin/
23+
cp $ARCHPATH/binary/socat /tmp/hyperstart-rootfs/sbin/
24+
cp $ARCHPATH/binary/mount.nfs /tmp/hyperstart-rootfs/sbin/mount.nfs4
2025

2126
if [ "$INCLUDE_KMODULES"x == "1"x ]; then
2227
if [ "$1"x = "aarch64"x ]; then

0 commit comments

Comments
 (0)