From owner-svn-src-head@freebsd.org Thu Oct 12 14:56:56 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C97E4E2BACF; Thu, 12 Oct 2017 14:56:56 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8868B7E3FF; Thu, 12 Oct 2017 14:56:56 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9CEutLK035279; Thu, 12 Oct 2017 14:56:55 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9CEusnF035268; Thu, 12 Oct 2017 14:56:54 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201710121456.v9CEusnF035268@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Thu, 12 Oct 2017 14:56:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324554 - in head/sys/boot: common i386/gptboot i386/gptzfsboot i386/zfsboot libsa uboot/lib X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: in head/sys/boot: common i386/gptboot i386/gptzfsboot i386/zfsboot libsa uboot/lib X-SVN-Commit-Revision: 324554 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2017 14:56:57 -0000 Author: imp Date: Thu Oct 12 14:56:54 2017 New Revision: 324554 URL: https://svnweb.freebsd.org/changeset/base/324554 Log: Move crc32.c, util.c and gpt.c over to libsa. Sponsored by: Netflix Added: head/sys/boot/libsa/crc32.c (contents, props changed) - copied, changed from r324553, head/sys/boot/common/crc32.c head/sys/boot/libsa/crc32.h (contents, props changed) - copied, changed from r324553, head/sys/boot/common/crc32.h head/sys/boot/libsa/gpt.c (contents, props changed) - copied, changed from r324553, head/sys/boot/common/gpt.c head/sys/boot/libsa/gpt.h (contents, props changed) - copied, changed from r324553, head/sys/boot/common/gpt.h head/sys/boot/libsa/util.c (contents, props changed) - copied, changed from r324553, head/sys/boot/common/util.c head/sys/boot/libsa/util.h (contents, props changed) - copied, changed from r324553, head/sys/boot/common/util.h Deleted: head/sys/boot/common/crc32.c head/sys/boot/common/crc32.h head/sys/boot/common/gpt.c head/sys/boot/common/gpt.h head/sys/boot/common/util.c head/sys/boot/common/util.h Modified: head/sys/boot/common/Makefile.inc head/sys/boot/i386/gptboot/Makefile head/sys/boot/i386/gptzfsboot/Makefile head/sys/boot/i386/zfsboot/Makefile head/sys/boot/uboot/lib/Makefile Modified: head/sys/boot/common/Makefile.inc ============================================================================== --- head/sys/boot/common/Makefile.inc Thu Oct 12 14:56:48 2017 (r324553) +++ head/sys/boot/common/Makefile.inc Thu Oct 12 14:56:54 2017 (r324554) @@ -1,5 +1,7 @@ # $FreeBSD$ +.PATH: ${SRCTOP}/sys/boot/common ${SRCTOP}/sys/boot/libsa + SRCS+= boot.c commands.c console.c devopen.c interp.c SRCS+= interp_backslash.c interp_parse.c ls.c misc.c SRCS+= module.c panic.c @@ -30,7 +32,6 @@ SRCS+= dev_net.c SRCS+= disk.c part.c CFLAGS+= -DLOADER_DISK_SUPPORT .if !defined(LOADER_NO_GPT_SUPPORT) -SRCS+= crc32.c CFLAGS+= -DLOADER_GPT_SUPPORT .endif .if !defined(LOADER_NO_MBR_SUPPORT) Modified: head/sys/boot/i386/gptboot/Makefile ============================================================================== --- head/sys/boot/i386/gptboot/Makefile Thu Oct 12 14:56:48 2017 (r324553) +++ head/sys/boot/i386/gptboot/Makefile Thu Oct 12 14:56:54 2017 (r324554) @@ -1,7 +1,9 @@ # $FreeBSD$ -.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common ${.CURDIR}/../../common +.include "../Makefile.inc" +.PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common ${SASRC} + FILES= gptboot MAN= gptboot.8 @@ -20,7 +22,7 @@ GPTBOOT_UFS?= UFS1_AND_UFS2 #GPTBOOT_UFS?= UFS2_ONLY #GPTBOOT_UFS?= UFS1_ONLY -CFLAGS= -DBOOTPROG=\"gptboot\" \ +CFLAGS+=-DBOOTPROG=\"gptboot\" \ -O1 \ -DGPT \ -D${GPTBOOT_UFS} \ Modified: head/sys/boot/i386/gptzfsboot/Makefile ============================================================================== --- head/sys/boot/i386/gptzfsboot/Makefile Thu Oct 12 14:56:48 2017 (r324553) +++ head/sys/boot/i386/gptzfsboot/Makefile Thu Oct 12 14:56:54 2017 (r324554) @@ -1,10 +1,10 @@ # $FreeBSD$ -.include +.include "../Makefile.inc" .PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../gptboot \ ${.CURDIR}/../zfsboot ${.CURDIR}/../common \ - ${.CURDIR}/../../common ${.CURDIR}/../../../crypto/skein + ${.CURDIR}/../../../crypto/skein ${SASRC} FILES= gptzfsboot MAN= gptzfsboot.8 @@ -19,7 +19,7 @@ REL1= 0x700 ORG1= 0x7c00 ORG2= 0x0 -CFLAGS= -DBOOTPROG=\"gptzfsboot\" \ +CFLAGS+=-DBOOTPROG=\"gptzfsboot\" \ -O1 \ -DGPT -DZFS -DBOOT2 \ -DSIOPRT=${BOOT_COMCONSOLE_PORT} \ Modified: head/sys/boot/i386/zfsboot/Makefile ============================================================================== --- head/sys/boot/i386/zfsboot/Makefile Thu Oct 12 14:56:48 2017 (r324553) +++ head/sys/boot/i386/zfsboot/Makefile Thu Oct 12 14:56:54 2017 (r324554) @@ -1,7 +1,9 @@ # $FreeBSD$ +.include "../Makefile.inc" + .PATH: ${.CURDIR}/../boot2 ${.CURDIR}/../common \ - ${.CURDIR}/../../common ${.CURDIR}/../../../crypto/skein + ${.CURDIR}/../../../crypto/skein ${SASRC} FILES= zfsboot MAN= zfsboot.8 Copied and modified: head/sys/boot/libsa/crc32.c (from r324553, head/sys/boot/common/crc32.c) ============================================================================== Copied and modified: head/sys/boot/libsa/crc32.h (from r324553, head/sys/boot/common/crc32.h) ============================================================================== Copied and modified: head/sys/boot/libsa/gpt.c (from r324553, head/sys/boot/common/gpt.c) ============================================================================== Copied and modified: head/sys/boot/libsa/gpt.h (from r324553, head/sys/boot/common/gpt.h) ============================================================================== Copied and modified: head/sys/boot/libsa/util.c (from r324553, head/sys/boot/common/util.c) ============================================================================== Copied and modified: head/sys/boot/libsa/util.h (from r324553, head/sys/boot/common/util.h) ============================================================================== Modified: head/sys/boot/uboot/lib/Makefile ============================================================================== --- head/sys/boot/uboot/lib/Makefile Thu Oct 12 14:56:48 2017 (r324553) +++ head/sys/boot/uboot/lib/Makefile Thu Oct 12 14:56:54 2017 (r324554) @@ -8,7 +8,7 @@ LIB= uboot INTERNALLIB= WARNS?= 2 -SRCS= crc32.c console.c copy.c devicename.c elf_freebsd.c glue.c +SRCS= console.c copy.c devicename.c elf_freebsd.c glue.c SRCS+= module.c net.c reboot.c time.c CFLAGS+= -ffreestanding -msoft-float