Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2020 15:44:00 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        Michael Vale <m.vale@live.com.au>, Ian Lepore <ian@freebsd.org>
Cc:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>,  "freebsd-arm@FreeBSD.org" <freebsd-arm@FreeBSD.org>,  Sergey Ivlev <ivlevsr@yandex.ru>
Subject:   Re: Cross-building ports with release(7)
Message-ID:  <1598855931.2738447.1583649840845.JavaMail.yahoo@mail.yahoo.co.jp>
References:  <1598855931.2738447.1583649840845.JavaMail.yahoo.ref@mail.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi

ZRouter.org support ports cross build.

https://zrouter.org


I do build mips, mipsel, arm, armv7 ports by ZRouter.

I put paper to AsiaBSDCon 2020 about cross build ports.
The paper is accept. But AsiaBSDCon is cancelled.

This is prepared slide.

https://docs.google.com/presentation/d/1iybunLiYIKbpOKHYHNHDnaQ7jO23DpXGk_U=
R9mF21NY/edit?usp=3Dsharing



----- Original Message -----
> From: Michael Vale <m.vale@live.com.au>
> To: Ian Lepore <ian@freebsd.org>
> Cc: "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>; "freebsd=
-arm@FreeBSD.org" <freebsd-arm@FreeBSD.org>; Sergey Ivlev <ivlevsr@yandex.r=
u>
> Date: 2020/3/7, Sat 03:15
> Subject: Re: Cross-building ports with release(7)
>=20
> Sergey,
>=20
> I see what you are trying to achieve here. Sorry but the cross ports buil=
d=20
> scripting has been neglected.=C2=A0 It requires staging.=C2=A0 I will tak=
e a look at this=20
> today but I can't promise anything as other things have taken priority in=
=20
> life.=C2=A0 You can for the interim make packages and install them after =
the fact or=20
> use Ian's suggestion.
>=20
> On 7 Mar 2020 04:15, Ian Lepore <ian@freebsd.org> wrote:
>=20
> On Fri, 2020-03-06 at 16:25 +0500, Sergey Ivlev wrote:
>>=C2=A0 Hello!
>>=20
>>=C2=A0 I've successfully built FreeBSD 13.0-CURRENT (r358609) image for
>>=C2=A0 ARMv7 on AMD64 host using release(7).
>>=20
>>=C2=A0 I wonder is it possible for AMD64 host to build/install ports into
>>=C2=A0 the image?
>>=20
>>=C2=A0 I've defined arm_do_quirk function in my configuration file, where
>>=C2=A0 I'm calling `make DESTDIR=3D${CHROOTDIR}/${DESTDIR} TARGET=3Darm
>>=C2=A0 TARGET_ARCH=3Darmv7 ... build install clean`.=C2=A0 But it ended u=
p with
>>=C2=A0 error, of course, because that make(1) chroots into
>>=C2=A0 ${CHROOTDIR}/${DESTDIR} and runs executables from there, but
>>=C2=A0 ${CHROOTDIR}/${DESTDIR} is where **built target** located (i.e. wh=
ere
>>=C2=A0 files for ARMv7; ${CHROOTDIR}/${DESTDIR} is {my chrrot
>>=C2=A0 dir}/usr/obj/usr/src/arm.armv7/release/{kernel name}).=C2=A0 Alter=
ing the
>>=C2=A0 PATH variable so it will specify ${CHROOTDIR} as the first entry,
>>=C2=A0 doesn't help either -- I end up with the same ``exec format=20
> error''
>>=C2=A0 (env PATH=3D"${CHROOTDIR}:${PATH}" make DESTDIR=3D...).
>>=20
>>=C2=A0 I had also tried to `chroot ${CHROOTDIR} make DESTDIR=3D${DESTDIR}
>>=C2=A0 TARGET=3Darm TARGET_ARCH=3Darmv7 ... build install clean`, but
>>=C2=A0 mount_nullfs(8) failed under chroot(8).
>>=20
>>=C2=A0 Therefore, my question is: is it possible while building an image =
for
>>=C2=A0 ARMv7 on AMD64 host with release(7) also building and installing
>>=C2=A0 ports into the result image?
>>=20
>>=C2=A0 Thanks in advance!
>>=20
>=20
> Cross-building ports is done with poudriere and qemu.=C2=A0 There is some
> info on setting it up in https://wiki.freebsd.org/QemuUserModeHowTo but
> I think that's pretty out of date.=C2=A0 There may be newer how-to info t=
hat
> I'm not aware of.=C2=A0 I'm going to CC the freebsd-arm@ list on this rep=
ly,
> because the folks there probably know of better information resources
> for all this.
>=20
> I also have no idea how to integrate poudriere-based building with
> release(7) stuff.=C2=A0 It may be a matter of building a local package re=
po
> using poudriere, then configuring the release script stuff to use it.
>=20
> -- Ian
>=20
>=20
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>=20
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1598855931.2738447.1583649840845.JavaMail.yahoo>