Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Building Marvell



On Sat, Aug 10, 2024 at 11:52:30AM +0200, Martin Husemann wrote:
> On Sat, Aug 10, 2024 at 12:06:27PM +0300, Harri Haataja wrote:
> > I'm not using build.sh. My understanding is that that wouldn't be
> > necessary on the same OS and processor arch. Of course the banana is hf
> > and I was wondering if that could end up being a default.
> 
> It is not the same MACHINE_ARCH, here is an example output from two 32bit
> evbarm machines, the second one (a GuruPlug) closely matches the MARVELL_NAS:

> So you could try setting MACHINE_ARCH=earmv5 when invoking make,
> like:
> 
> 	env MACHINE_ARCH=earmv5 make depend
> 	env MACHINE_ARCH=earmv5 make
> 
> in the kernel compile directory.

Interesting. The end result is the same, though.

#    create  XTLMARV/autoconf.d
mkdep -f autoconf.d.tmp --  -mfloat-abi=soft -mapcs-frame -ffreestanding -fno-zero-initialized-in-bss  -fno-delete-null-pointer-checks   -O2  -msoft-float   -fstack-usage -Wstack-usage=3584  -fno-strict-aliasing -fno-common     -std=gnu99   -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wno-type-limits -Wno-sign-compare -Walloca   -Wno-address-of-packed-member  -mcpu=xscale   -DKERNEL_BASE_VOFFSET="(0xc0008000-0x00008000)" -I. -I../../../../external/bsd/libnv/dist -I../../../../external/bsd/acpica/dist -I../../../../../common/lib/libx86emu -I../../../../../common/lib/libc/misc -I../../../../../common/include -I../../../../arch  -I../../../.. -nostdinc -DCOMPAT_UTILS  -D__HAVE_PCI_CONF_HOOK  -D__HAVE_CPU_UAREA_ALLOC_IDLELWP  -DCOM_REGMAP  -DKERNEL_BASE_EXT="0xc0000000"  -DCOMPAT_44 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/arm/string -I../../../../lib/libkern/../../../common/lib/libc/arch/arm/atomic -I../../../../lib/libkern/../../../common/lib/libc/hash/sha3   -I../../../../external/bsd/libnv/dist  ../../../../arch/evbarm/evbarm/autoconf.c
mv -f autoconf.d.tmp autoconf.d
#    create  XTLMARV/bcopy_page.d
mkdep -f bcopy_page.d.tmp --  -x assembler-with-cpp -D_LOCORE -Wa,--fatal-warnings  -mcpu=xscale   -DKERNEL_BASE_VOFFSET="(0xc0008000-0x00008000)" -I. -I../../../../external/bsd/libnv/dist -I../../../../external/bsd/acpica/dist -I../../../../../common/lib/libx86emu -I../../../../../common/lib/libc/misc -I../../../../../common/include -I../../../../arch  -I../../../.. -nostdinc -DCOMPAT_UTILS  -D__HAVE_PCI_CONF_HOOK  -D__HAVE_CPU_UAREA_ALLOC_IDLELWP  -DCOM_REGMAP  -DKERNEL_BASE_EXT="0xc0000000"  -DCOMPAT_44 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/arm/string -I../../../../lib/libkern/../../../common/lib/libc/arch/arm/atomic -I../../../../lib/libkern/../../../common/lib/libc/hash/sha3   -I../../../../external/bsd/libnv/dist  ../../../../arch/arm/arm32/bcopy_page.S
cc1: error: '-mfloat-abi=hard': selected processor lacks an FPU
mkdep: compile failed.
*** Error code 1

What looks funny here is that the arguments seem to be very different
for that file, partifularly no -mfloat-abi=soft. Just the xscale.





Home | Main Index | Thread Index | Old Index