Date: Mon, 17 Oct 2016 20:34:06 -0700 From: Ngie Cooper <yaneurabeya@gmail.com> To: Marcel Moolenaar <marcel@FreeBSD.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r307544 - head/usr.bin/mkimg Message-ID: <E68F92C8-DF7D-440E-A6B9-E090EEE38785@gmail.com> In-Reply-To: <201610180155.u9I1t79S037286@repo.freebsd.org> References: <201610180155.u9I1t79S037286@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Oct 17, 2016, at 18:55, Marcel Moolenaar <marcel@FreeBSD.org> wrote: >=20 > Author: marcel > Date: Tue Oct 18 01:55:07 2016 > New Revision: 307544 > URL: https://svnweb.freebsd.org/changeset/base/307544 >=20 > Log: > o Provide a private definition for UUIDs (mkimg_uuid_t) because > UUIDs are not portable. > o Move mkimg_uuid() to a new file and merge both gpt_uuid_enc() > and vhd_uuid_enc() into a single mkimg_uuid_enc() that lives > in the same file. > o Move the OS-specific implementation of generating a UUID to > osdep_uuidgen() and provide the implementations for FreeBSD, > macOS and Linux. > o Expect the partitioning scheme headers to be found by having > a search to the directory in which the headers live. This > avoids conflicts on non-FreeBSD machines. >=20 > Added: > head/usr.bin/mkimg/uuid.c (contents, props changed) > Modified: > head/usr.bin/mkimg/Makefile > head/usr.bin/mkimg/apm.c > head/usr.bin/mkimg/bsd.c > head/usr.bin/mkimg/ebr.c > head/usr.bin/mkimg/gpt.c > head/usr.bin/mkimg/mbr.c > head/usr.bin/mkimg/mkimg.c > head/usr.bin/mkimg/mkimg.h > head/usr.bin/mkimg/pc98.c > head/usr.bin/mkimg/vhd.c > head/usr.bin/mkimg/vtoc8.c >=20 > Modified: head/usr.bin/mkimg/Makefile > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > --- head/usr.bin/mkimg/Makefile Tue Oct 18 01:42:42 2016 (r307543) > +++ head/usr.bin/mkimg/Makefile Tue Oct 18 01:55:07 2016 (r307544) > @@ -3,15 +3,15 @@ > .include <src.opts.mk> >=20 > PROG=3D mkimg > -SRCS=3D format.c image.c mkimg.c scheme.c > +SRCS=3D format.c image.c mkimg.c scheme.c uuid.c > MAN=3D mkimg.1 >=20 > -MKIMG_VERSION=3D20151211 > +MKIMG_VERSION=3D20161016 > mkimg.o: Makefile >=20 > CFLAGS+=3D-DMKIMG_VERSION=3D${MKIMG_VERSION} > CFLAGS+=3D-DSPARSE_WRITE > -CFLAGS+=3D-I${.CURDIR:H:H}/sys > +CFLAGS+=3D-I${SRCTOP}/sys/sys/disk Isn't it a better app idea to maintain the disk/ namespace for includes?= Thanks! -Ngie=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E68F92C8-DF7D-440E-A6B9-E090EEE38785>