Date: Sat, 25 Apr 2020 10:56:47 +0200 From: Emmanuel Vadot <manu@bidouilliste.com> To: Mark Millard <marklmi@yahoo.com> Cc: Mark Millard via freebsd-uboot <freebsd-uboot@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>, FreeBSD ports <freebsd-ports@freebsd.org> Subject: Re: Applying distribution patches for u-boot-rpi4-2020.04 fails during build (poudriere-devel context) Message-ID: <20200425105647.1406a2357cb0b825e19696a5@bidouilliste.com> In-Reply-To: <2AB77D60-F960-4C84-A9DC-8C2873A5C1FE@yahoo.com> References: <2AB77D60-F960-4C84-A9DC-8C2873A5C1FE.ref@yahoo.com> <2AB77D60-F960-4C84-A9DC-8C2873A5C1FE@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 25 Apr 2020 00:43:27 -0700 Mark Millard via freebsd-uboot <freebsd-uboot@freebsd.org> wrote: > From the log file: > > ===> Patching for u-boot-rpi4-2020.04 > ===> Applying distribution patches for u-boot-rpi4-2020.04 > 2 out of 2 hunks failed--saving rejects to scripts/dtc/libfdt/fdt_addresses.c.rej We don't have such patch in the tree. > *** Error code 1 > > Details: > > amd64 head -r360289 context. Ports head -r532914 context. > > # svnlite status /usr/ports/sysutils/u-boot-rpi4/ > # > > # svnlite status /usr/ports/sysutils/u-boot-master/ > # > > # more /wrkdirs/usr/ports/sysutils/u-boot-rpi4/work/u-boot-2020.04/scripts/dtc/libfdt/fdt_addresses.c.rej > @@ -1,6 +1,7 @@ > /* > * libfdt - Flat Device Tree manipulation > * Copyright (C) 2014 David Gibson <david@gibson.dropbear.id.au> > + * Copyright (C) 2018 embedded brains GmbH > * > * libfdt is dual licensed: you can use it either under the terms of > * the GPL, or the BSD license, at your option. > @@ -55,42 +56,32 @@ > > #include "libfdt_internal.h" > > -int fdt_address_cells(const void *fdt, int nodeoffset) > +static int fdt_cells(const void *fdt, int nodeoffset, const char *name) > { > - const fdt32_t *ac; > + const fdt32_t *c; > int val; > int len; > > - ac = fdt_getprop(fdt, nodeoffset, "#address-cells", &len); > - if (!ac) > + c = fdt_getprop(fdt, nodeoffset, name, &len); > + if (!c) > return 2; > > - if (len != sizeof(*ac)) > + if (len != sizeof(*c)) > return -FDT_ERR_BADNCELLS; > > - val = fdt32_to_cpu(*ac); > + val = fdt32_to_cpu(*c); > if ((val <= 0) || (val > FDT_MAX_NCELLS)) > return -FDT_ERR_BADNCELLS; > > return val; > } > > -int fdt_size_cells(const void *fdt, int nodeoffset) > +int fdt_address_cells(const void *fdt, int nodeoffset) > { > - const fdt32_t *sc; > - int val; > - int len; > - > - sc = fdt_getprop(fdt, nodeoffset, "#size-cells", &len); > - if (!sc) > - return 2; > - > - if (len != sizeof(*sc)) > - return -FDT_ERR_BADNCELLS; > - > - val = fdt32_to_cpu(*sc); > - if ((val < 0) || (val > FDT_MAX_NCELLS)) > - return -FDT_ERR_BADNCELLS; > + return fdt_cells(fdt, nodeoffset, "#address-cells"); > +} > > - return val; > +int fdt_size_cells(const void *fdt, int nodeoffset) > +{ > + return fdt_cells(fdt, nodeoffset, "#size-cells"); > } > > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > > _______________________________________________ > freebsd-uboot@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-uboot > To unsubscribe, send any mail to "freebsd-uboot-unsubscribe@freebsd.org" -- Emmanuel Vadot <manu@bidouilliste.com>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200425105647.1406a2357cb0b825e19696a5>