Skip site navigation (1)Skip section navigation (2)
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:
> 
> Author: marcel
> Date: Tue Oct 18 01:55:07 2016
> New Revision: 307544
> URL: https://svnweb.freebsd.org/changeset/base/307544
> 
> 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.
> 
> 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
> 
> Modified: head/usr.bin/mkimg/Makefile
> ==============================================================================
> --- 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>
> 
> PROG=    mkimg
> -SRCS=    format.c image.c mkimg.c scheme.c
> +SRCS=    format.c image.c mkimg.c scheme.c uuid.c
> MAN=    mkimg.1
> 
> -MKIMG_VERSION=20151211
> +MKIMG_VERSION=20161016
> mkimg.o: Makefile
> 
> CFLAGS+=-DMKIMG_VERSION=${MKIMG_VERSION}
> CFLAGS+=-DSPARSE_WRITE
> -CFLAGS+=-I${.CURDIR:H:H}/sys
> +CFLAGS+=-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>