linux4.13: enable builds for armv5tel

This commit is contained in:
Michael Aldridge 2017-09-28 02:23:52 -05:00 committed by Michael Aldridge
parent 54cd9229b5
commit 5f1a24e617
3 changed files with 6327 additions and 5 deletions

View File

@ -13,7 +13,7 @@ case "$XBPS_TARGET_MACHINE" in
depends="linux${version} linux-firmware-amd linux-firmware-intel linux-firmware-nvidia linux-firmware-network dracut"
_depends_headers="linux${version}-headers"
;;
aarch64*)
arm*|aarch64*)
depends="linux${version}"
_depends_headers="linux${version}-headers"
;;

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@ noverifyrdeps=yes
noshlibprovides=yes
preserve=yes
only_for_archs="i686 i686-musl x86_64 x86_64-musl armv7l armv7l-musl aarch64 aarch64-musl"
only_for_archs="i686 i686-musl x86_64 x86_64-musl armv5tel armv5tel-musl armv7l armv7l-musl aarch64 aarch64-musl"
hostmakedepends="bc perl kmod uboot-mkimage libressl-devel"
_kernver="${version}_${revision}"
@ -48,7 +48,7 @@ do_configure() {
case "$XBPS_TARGET_MACHINE" in
i686*) arch=i386;;
x86_64*) arch=x86_64;;
armv7*) arch=arm;;
armv5*|armv7*) arch=arm;;
aarch64*) arch=arm64;;
esac
@ -64,6 +64,10 @@ do_configure() {
msg_normal "Detected a .config file for your arch, using it.\n"
cp -f ${FILESDIR}/${arch}-dotconfig .config
make ${makejobs} ARCH=$arch ${_args} oldconfig
elif [ -f ${FILESDIR}/${XBPS_TARGET_MACHINE%%-musl}-dotconfig ]; then
msg_normal "Detected a .config file for your cpu family, using it.\n"
cp -f ${FILESDIR}/${XBPS_TARGET_MACHINE%%-musl}-dotconfig .config
make ${makejobs} ARCH=$arch ${_args} oldconfig
else
msg_normal "Defaulting to 'defconfig and allmodconfig'.\n"
make ${makejobs} ARCH=$arch ${_args} defconfig
@ -78,7 +82,7 @@ do_build() {
case "$XBPS_TARGET_MACHINE" in
i686*) _args="bzImage modules"; arch=i386;;
x86_64*) _args="bzImage modules"; arch=x86_64;;
armv7*) _args="zImage modules dtbs"; arch=arm;;
armv5*|armv7*) _args="zImage modules dtbs"; arch=arm;;
aarch64*) _args="Image modules dtbs"; arch=arm64;;
esac
if [ "$CROSS_BUILD" ]; then
@ -97,7 +101,7 @@ do_install() {
case "$XBPS_TARGET_MACHINE" in
i686*) arch=x86; subarch=i386;;
x86_64*) arch=x86; subarch=x86_64;;
armv7*) arch=arm;;
armv5*|armv7*) arch=arm;;
aarch64*) arch=arm64;;
esac