Merge pull request #207 from gao-feng/aarch64

support aarch64
This commit is contained in:
Gao feng
2016-10-14 17:48:44 +08:00
committed by GitHub
6 changed files with 2264 additions and 1 deletions

View File

@@ -4,9 +4,14 @@ if WITH_VBOX
initrd-local:
bash ./make-initrd.sh vbox
else
if WITH_AARCH64
initrd-local:
bash ./make-initrd.sh aarch64
else
initrd-local:
bash ./make-initrd.sh
endif
endif
cbfs-local:
bash ./make-initrd.sh cbfs

BIN
build/kernel_aarch64 Executable file

Binary file not shown.

2240
build/kernel_config_aarch64 Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -15,7 +15,13 @@ cp ../src/init /tmp/hyperstart-rootfs
cp busybox /tmp/hyperstart-rootfs
cp iptables /tmp/hyperstart-rootfs
cp libm.so.6 /tmp/hyperstart-rootfs/lib64/
tar -xf modules.tar -C /tmp/hyperstart-rootfs/lib/modules
if [ "$1"x = "aarch64"x ]; then
echo "build hyperstart for aarch64"
tar -xf modules_aarch64.tar -C /tmp/hyperstart-rootfs/lib/modules
else
tar -xf modules.tar -C /tmp/hyperstart-rootfs/lib/modules
fi
# create symlinks to busybox and iptables
BUSYBOX_BINARIES=(/bin/sh /bin/tar /bin/hwclock /sbin/modprobe /sbin/depmod)

BIN
build/modules_aarch64.tar Normal file

Binary file not shown.

View File

@@ -38,6 +38,17 @@ if test "$fail" = "1" ; then
AC_MSG_ERROR(Unable to find necessary functions)
fi
AC_ARG_WITH([aarch64],
[AS_HELP_STRING([--with-aarch64],
[run hyperstart with 64-bit ARM architecture])],
[],[with_aarch64=no])
if test "x$with_aarch64" != "xno" ; then
AC_DEFINE_UNQUOTED([WITH_AARCH64], 1, [run hyperstart with 64-bit ARM architecture])
fi
AM_CONDITIONAL([WITH_AARCH64], [test "x$with_aarch64" != "xno"])
AC_ARG_WITH([vbox],
[AS_HELP_STRING([--with-vbox],
[run hyperstart on Virtualbox])],
@@ -61,6 +72,7 @@ AC_MSG_RESULT([
prefix: ${prefix}
with-vbox: ${with_vbox}
with-aarch64: ${with_aarch64}
compiler: ${CC}
cflags: ${CFLAGS}