Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
x264
Commits
943128a5
Commit
943128a5
authored
Mar 18, 2014
by
Janne Grunau
Committed by
Fiona Glaser
Aug 26, 2014
Browse files
aarch64: initial build support
parent
ee427b69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
943128a5
...
...
@@ -123,6 +123,15 @@ OBJASM = $(ASMSRC:%.S=%.o)
endif
endif
# AArch64 NEON optims
ifeq
($(ARCH),AARCH64)
ifneq
($(AS),)
ASMSRC
+=
SRCS
+=
OBJASM
=
$(ASMSRC:%.S=%.o)
endif
endif
ifneq
($(HAVE_GETOPT_LONG),1)
SRCCLI
+=
extras/getopt.c
endif
...
...
configure
View file @
943128a5
...
...
@@ -684,6 +684,15 @@ case $host_cpu in
AS
=
"
${
AS
-
${
CC
}}
"
fi
;;
aarch64
)
ARCH
=
"AARCH64"
if
[
"
$SYS
"
=
MACOSX
]
;
then
AS
=
"
${
AS
-extras/gas-preprocessor.pl
$CC
}
"
ASFLAGS
=
"
$ASFLAGS
-DPREFIX"
else
AS
=
"
${
AS
-
${
CC
}}
"
fi
;;
s390|s390x
)
ARCH
=
"S390"
;;
...
...
@@ -767,7 +776,20 @@ if [ $asm = auto -a $ARCH = ARM ] ; then
fi
fi
if
[
$asm
=
auto
-a
$ARCH
=
ARM
]
;
then
if
[
$asm
=
auto
-a
$ARCH
=
AARCH64
]
;
then
# set flags so neon is built by default
echo
$CFLAGS
|
grep
-Eq
'(-mcpu|-march|-mfpu|-arch)'
||
CFLAGS
=
"
$CFLAGS
-arch arm64 -mfpu=neon"
if
cc_check
''
''
'__asm__("cmeq v0.8h, v0.8h, #0");'
;
then
define HAVE_NEON
ASFLAGS
=
"
$ASFLAGS
-c"
else
echo
"no NEON support, try adding -mfpu=neon to CFLAGS"
echo
"If you really want to run on such a CPU, configure with --disable-asm."
exit
1
fi
fi
if
[
$asm
=
auto
-a
\(
$ARCH
=
ARM
-o
$ARCH
=
AARCH64
\)
]
;
then
# check if the assembler supports '.func' (clang 3.5 does not)
as_check
".func test
${
NL
}
.endfunc"
&&
define HAVE_AS_FUNC 1
fi
...
...
@@ -1318,7 +1340,7 @@ cat conftest.log
rm
conftest.log
[
"
$SRCPATH
"
!=
"."
]
&&
ln
-sf
${
SRCPATH
}
/Makefile ./Makefile
mkdir
-p
common/
{
arm,ppc,x86
}
encoder extras filters/video input output tools
mkdir
-p
common/
{
aarch64,
arm,ppc,x86
}
encoder extras filters/video input output tools
echo
echo
"You can run 'make' or 'make fprofiled' now."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment