Index | Thread | Search

From:
Landry Breuil <landry@openbsd.org>
Subject:
Re: sysutils/crust: SCP firmware for Allwinner SoCs
To:
Mark Kettenis <mark.kettenis@xs4all.nl>
Cc:
ports@openbsd.org
Date:
Tue, 20 Feb 2024 13:51:25 +0100

Download raw body.

Thread
Le Tue, Feb 20, 2024 at 01:28:05PM +0100, Mark Kettenis a écrit :
> > From: Jeremie Courreges-Anglas <jca@wxcvbn.org>
> > Date: Mon, 19 Feb 2024 23:34:34 +0100
> > 
> > On Mon, Feb 19 2024, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> > > This will be used in an upcoming u-boot update for Allwinner's 64-bit
> > > SoCs.  This will bring "proper" S3-like suspend/resume on selected
> > > boards.
> > >
> > > ok?
> > 
> > Please see nits below.
> > 
> > >
> > > diff --git a/sysutils/crust/Makefile b/sysutils/crust/Makefile
> > > new file mode 100644
> > > index 00000000000..3b187598161
> > > --- /dev/null
> > > +++ b/sysutils/crust/Makefile
> > > @@ -0,0 +1,57 @@
> > > +PKG_ARCH=	*
> > > +
> > > +COMMENT=	Libre SCP firmware for Allwinner sunxi SoCs
> > 
> > Should start lowercase unless for a good reason (eg acronyms).  Here
> > I think "libre" is more appropriate.
> > 
> > > +GH_ACCOUNT=	crust-firmware
> > > +GH_PROJECT=	crust
> > > +GH_TAGNAME=	v0.6
> > > +
> > > +CATEGORIES=	sysutils
> > > +
> > > +# BSD
> > > +PERMIT_PACKAGE=	Yes
> > > +
> > > +BUILD_DEPENDS+=	devel/or1k-elf/gcc
> > 
> > > +MAKE_ENV+= CROSS_COMPILE="or1k-unknown-elf-"
> > 
> > I know it's done in a lot of places, but "+=" is not useful here, please
> > just use "=".
> > 
> > Also:
> > - space vs tab for the MAKE_ENV line
> > - keeping VAR=	VALUE aligned makes things more readable
> > 
> > Adding
> >   MAKE_FLAGS=	V=1
> > lets us see the flags used for compilation.
> > 
> > Diff to previous below, and updated tarball attached.
> > Please submit tarballs for new ports!  ;)
> 
> Only as tarballs?  Or both tarballs and diffs?

generally tarballs for new ports, and diffs for updates.. unless there's
a vast rearchitecturing of the port (eg moving to a subdir, splitting
into subpackages, etc..) where a diff would be unreadable ofc :D