support aarch64

Signed-off-by: Gao feng <omarapazanadi@gmail.com>
This commit is contained in:
Gao feng
2016-09-30 17:54:10 +08:00
parent 504218c41f
commit dc46e20caa
6 changed files with 2264 additions and 1 deletions
+5
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
View File
Binary file not shown.
File diff suppressed because it is too large Load Diff
+7 -1
View File
@@ -7,7 +7,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
ldd /tmp/hyperstart-rootfs/init | while read line
do
Binary file not shown.
+12
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}