linux5.5: enable mips*
This commit is contained in:
parent
e017e09cc2
commit
a37d99adf0
1 changed files with 9 additions and 1 deletions
|
@ -12,7 +12,7 @@ checksum=b843ef331290559c5cfce99616165154899e3d7906898ec7de5054efd39f7e48
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
|
|
||||||
# XXX restrict archs until all archs are updated.
|
# XXX restrict archs until all archs are updated.
|
||||||
archs="i686* x86_64* ppc*"
|
archs="aarch64* i686* x86_64* ppc* mips*"
|
||||||
|
|
||||||
nodebug=yes # -dbg package is generated below manually
|
nodebug=yes # -dbg package is generated below manually
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
|
@ -56,6 +56,7 @@ do_configure() {
|
||||||
ppc64le*) arch=powerpc; subarch=ppc64le;;
|
ppc64le*) arch=powerpc; subarch=ppc64le;;
|
||||||
ppc64*) arch=powerpc; subarch=ppc64;;
|
ppc64*) arch=powerpc; subarch=ppc64;;
|
||||||
ppc*) arch=powerpc;;
|
ppc*) arch=powerpc;;
|
||||||
|
mips*) arch=mips;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
@ -91,6 +92,7 @@ do_build() {
|
||||||
arm*) _args="zImage modules dtbs"; arch=arm;;
|
arm*) _args="zImage modules dtbs"; arch=arm;;
|
||||||
aarch64*) _args="Image modules dtbs"; arch=arm64;;
|
aarch64*) _args="Image modules dtbs"; arch=arm64;;
|
||||||
ppc*) _args="zImage modules"; arch=powerpc;;
|
ppc*) _args="zImage modules"; arch=powerpc;;
|
||||||
|
mips*) _args="uImage modules dtbs"; arch=mips;;
|
||||||
esac
|
esac
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
_cross="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
|
_cross="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-"
|
||||||
|
@ -112,6 +114,7 @@ do_install() {
|
||||||
arm*) arch=arm;;
|
arm*) arch=arm;;
|
||||||
aarch64*) arch=arm64;;
|
aarch64*) arch=arm64;;
|
||||||
ppc*) arch=powerpc;;
|
ppc*) arch=powerpc;;
|
||||||
|
mips*) arch=mips;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Run depmod after compressing modules.
|
# Run depmod after compressing modules.
|
||||||
|
@ -143,6 +146,10 @@ do_install() {
|
||||||
vinstall vmlinux 644 boot vmlinux-${_kernver}
|
vinstall vmlinux 644 boot vmlinux-${_kernver}
|
||||||
/usr/bin/$STRIP ${DESTDIR}/boot/vmlinux-${_kernver}
|
/usr/bin/$STRIP ${DESTDIR}/boot/vmlinux-${_kernver}
|
||||||
;;
|
;;
|
||||||
|
mips)
|
||||||
|
vinstall arch/mips/boot/uImage.bin 644 boot uImage-${_kernver}
|
||||||
|
make ${makejobs} ARCH=${subarch:-$arch} INSTALL_DTBS_PATH=${DESTDIR}/boot/dtbs/dtbs-${_kernver} dtbs_install
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Switch to /usr.
|
# Switch to /usr.
|
||||||
|
@ -283,6 +290,7 @@ do_install() {
|
||||||
i386|x86_64) _args="arm* p*";;
|
i386|x86_64) _args="arm* p*";;
|
||||||
arm|arm64) _args="x86* p*";;
|
arm|arm64) _args="x86* p*";;
|
||||||
powerpc) _args="arm* x86* parisc";;
|
powerpc) _args="arm* x86* parisc";;
|
||||||
|
mips) _args="mips* p*";;
|
||||||
esac
|
esac
|
||||||
for arch in alpha avr32 blackfin cris frv h8300 \
|
for arch in alpha avr32 blackfin cris frv h8300 \
|
||||||
ia64 m* s* um v850 xtensa ${_args}; do
|
ia64 m* s* um v850 xtensa ${_args}; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue