From 4d9f88efd8ddb7da9c66fa28eee05354938f902b Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 10 Aug 2016 21:57:19 -0700 Subject: [PATCH] cmd: make the GPLv2 pixiecore own the unadorned "pixiecore" binary name. In practice, most people will want the standalone binary that Just Works, the variant that doesn't embed ipxe is going to be for niche applications only. --- cmd/{pixiecore-gpl => pixiecore-apache2}/main.go | 15 ++------------- cmd/{pixiecore-gpl => pixiecore}/LICENSE | 0 cmd/{pixiecore-gpl => pixiecore}/README.md | 6 +++--- cmd/pixiecore/main.go | 15 +++++++++++++-- 4 files changed, 18 insertions(+), 18 deletions(-) rename cmd/{pixiecore-gpl => pixiecore-apache2}/main.go (62%) rename cmd/{pixiecore-gpl => pixiecore}/LICENSE (100%) rename cmd/{pixiecore-gpl => pixiecore}/README.md (70%) diff --git a/cmd/pixiecore-gpl/main.go b/cmd/pixiecore-apache2/main.go similarity index 62% rename from cmd/pixiecore-gpl/main.go rename to cmd/pixiecore-apache2/main.go index cf43563..43e5971 100644 --- a/cmd/pixiecore-gpl/main.go +++ b/cmd/pixiecore-apache2/main.go @@ -14,19 +14,8 @@ package main -import ( - "go.universe.tf/netboot/pixiecore" - "go.universe.tf/netboot/third_party/ipxe" -) +import "go.universe.tf/netboot/pixiecore" func main() { - pxe := ipxe.MustAsset("undionly.kpxe") - efi32 := ipxe.MustAsset("ipxe-i386.efi") - efi64 := ipxe.MustAsset("ipxe-x86_64.efi") - - pixiecore.CLI(map[pixiecore.Firmware][]byte{ - pixiecore.FirmwareX86PC: pxe, - pixiecore.FirmwareEFI32: efi32, - pixiecore.FirmwareEFI64: efi64, - }) + pixiecore.CLI(nil) } diff --git a/cmd/pixiecore-gpl/LICENSE b/cmd/pixiecore/LICENSE similarity index 100% rename from cmd/pixiecore-gpl/LICENSE rename to cmd/pixiecore/LICENSE diff --git a/cmd/pixiecore-gpl/README.md b/cmd/pixiecore/README.md similarity index 70% rename from cmd/pixiecore-gpl/README.md rename to cmd/pixiecore/README.md index 43aeebb..d79547b 100644 --- a/cmd/pixiecore-gpl/README.md +++ b/cmd/pixiecore/README.md @@ -8,6 +8,6 @@ Due to iPXE's license, the result of embedding iPXE builds in the Pixiecore binary makes the overall binary fall under the terms of the GPLv2. See the LICENSE file in this directory for that license. -If you want an Apache-licensed build, check the "pixiecore" directory -one level up for a build that doesn't embed iPXE (you have to supply -iPXE binaries at runtime). +If you want an Apache-licensed build, check the "pixiecore-apache2" +directory one level up for a build that doesn't embed iPXE (you have +to supply iPXE binaries at runtime). diff --git a/cmd/pixiecore/main.go b/cmd/pixiecore/main.go index 43e5971..cf43563 100644 --- a/cmd/pixiecore/main.go +++ b/cmd/pixiecore/main.go @@ -14,8 +14,19 @@ package main -import "go.universe.tf/netboot/pixiecore" +import ( + "go.universe.tf/netboot/pixiecore" + "go.universe.tf/netboot/third_party/ipxe" +) func main() { - pixiecore.CLI(nil) + pxe := ipxe.MustAsset("undionly.kpxe") + efi32 := ipxe.MustAsset("ipxe-i386.efi") + efi64 := ipxe.MustAsset("ipxe-x86_64.efi") + + pixiecore.CLI(map[pixiecore.Firmware][]byte{ + pixiecore.FirmwareX86PC: pxe, + pixiecore.FirmwareEFI32: efi32, + pixiecore.FirmwareEFI64: efi64, + }) }