Deprecate the gigaboot20x6 repo
Moved the Makefile to Makefile.old
Add a new Makefile that prints a message pointing to the new repo
Updated the README.txt to point to the new repo
Change-Id: I7db9f4c8a770aa9271e819115ae61010029c161d
diff --git a/Makefile b/Makefile
index 56c903b..47a4c71 100644
--- a/Makefile
+++ b/Makefile
@@ -2,112 +2,4 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-ARCH := x86_64
-
-EFI_TOOLCHAIN :=
-EFI_CC := $(EFI_TOOLCHAIN)gcc
-EFI_LD := $(EFI_TOOLCHAIN)ld
-EFI_READELF := $(EFI_TOOLCHAIN)readelf
-EFI_OBJCOPY := $(EFI_TOOLCHAIN)objcopy
-EFI_AR := $(EFI_TOOLCHAIN)ar
-
-EFI_LINKSCRIPT := build/efi-x86-64.lds
-
-EFI_CFLAGS := -fPIE -fshort-wchar -fno-stack-protector -mno-red-zone
-EFI_CFLAGS += -Wall -std=c99
-EFI_CFLAGS += -ffreestanding -nostdinc -Iinclude -Isrc -Ithird_party/lk/include
-
-EFI_LDFLAGS := -nostdlib -T $(EFI_LINKSCRIPT) -pie
-EFI_LDFLAGS += -Lout
-
-EFI_LIBS := -lutils
-
-what_to_build:: all
-
-# build rules and macros
-include build/build.mk
-
-# declare applications here
-#$(call efi_app, hello, hello.c)
-$(call efi_app, showmem, src/showmem.c)
-$(call efi_app, fileio, src/fileio.c)
-OSBOOT_FILES := src/osboot.c \
- src/cmdline.c \
- src/magenta.c \
- src/netboot.c \
- src/netifc.c \
- src/inet6.c \
- src/pci.c
-
-$(call efi_app, osboot, $(OSBOOT_FILES))
-$(call efi_app, usbtest, src/usbtest.c)
-
-ifneq ($(APP),)
- APP := out/$(APP).efi
-else
- APP := out/osboot.efi
-endif
-
-LIB_SRCS := \
- lib/efi/guids.c \
- lib/utils.c \
- lib/loadfile.c \
- lib/console-printf.c \
- lib/ctype.c \
- lib/stdlib.c \
- lib/string.c
-LIB_SRCS += third_party/lk/src/printf.c
-
-LIB_OBJS := $(patsubst %.c,out/%.o,$(LIB_SRCS))
-DEPS += $(patsubst %.c,out/%.d,$(LIB_SRCS))
-
-out/libutils.a: $(LIB_OBJS)
- @mkdir -p $(dir $@)
- @echo archiving: $@
- $(QUIET)rm -f $@
- $(QUIET)ar rc $@ $^
-
-out/BOOTx64.EFI: $(APP)
- @mkdir -p $(dir $@)
- $(QUIET)cp -f $^ $@
-
-# generate a small IDE disk image for qemu
-out/disk.img: $(APPS) out/BOOTx64.EFI
- @mkdir -p $(dir $@)
- $(QUIET)./build/mkdiskimg.sh $@
- @echo copying: $(APPS) README.txt to disk.img
- $(QUIET)mcopy -o -i out/disk.img@@1024K $(APPS) README.txt ::
- $(QUIET)mcopy -o -i out/disk.img@@1024K $(APPS) out/BOOTx64.EFI ::EFI/BOOT/
-
-ALL += out/disk.img
-
--include $(DEPS)
-
-QEMU_OPTS := -cpu qemu64
-QEMU_OPTS += -bios third_party/ovmf/OVMF.fd
-QEMU_OPTS += -drive file=out/disk.img,format=raw,if=ide
-QEMU_OPTS += -serial stdio
-QEMU_OPTS += -m 256M
-ifneq ($(USBDEV),)
- QEMU_OPTS += -usbdevice host:$(USBDEV)
-endif
-
-qemu-e1000: QEMU_OPTS += -netdev type=tap,ifname=qemu,script=no,id=net0 -net nic,model=e1000,netdev=net0
-qemu-e1000: all
- qemu-system-x86_64 $(QEMU_OPTS)
-
-qemu: QEMU_OPTS += -net none
-qemu:: all
- qemu-system-x86_64 $(QEMU_OPTS)
-
-out/nbserver: src/nbserver.c
- @mkdir -p out
- @echo building nbserver
- $(QUIET)gcc -o out/nbserver -Isrc -Wall src/nbserver.c
-
-all: $(ALL) out/nbserver
-
-clean::
- rm -rf out
-
-all-clean: clean
+$(error This repo is deprecated, see https://fuchsia.googlesource.com/magenta under bootloader/)
diff --git a/Makefile.old b/Makefile.old
new file mode 100644
index 0000000..56c903b
--- /dev/null
+++ b/Makefile.old
@@ -0,0 +1,113 @@
+# Copyright 2016 The Fuchsia Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+ARCH := x86_64
+
+EFI_TOOLCHAIN :=
+EFI_CC := $(EFI_TOOLCHAIN)gcc
+EFI_LD := $(EFI_TOOLCHAIN)ld
+EFI_READELF := $(EFI_TOOLCHAIN)readelf
+EFI_OBJCOPY := $(EFI_TOOLCHAIN)objcopy
+EFI_AR := $(EFI_TOOLCHAIN)ar
+
+EFI_LINKSCRIPT := build/efi-x86-64.lds
+
+EFI_CFLAGS := -fPIE -fshort-wchar -fno-stack-protector -mno-red-zone
+EFI_CFLAGS += -Wall -std=c99
+EFI_CFLAGS += -ffreestanding -nostdinc -Iinclude -Isrc -Ithird_party/lk/include
+
+EFI_LDFLAGS := -nostdlib -T $(EFI_LINKSCRIPT) -pie
+EFI_LDFLAGS += -Lout
+
+EFI_LIBS := -lutils
+
+what_to_build:: all
+
+# build rules and macros
+include build/build.mk
+
+# declare applications here
+#$(call efi_app, hello, hello.c)
+$(call efi_app, showmem, src/showmem.c)
+$(call efi_app, fileio, src/fileio.c)
+OSBOOT_FILES := src/osboot.c \
+ src/cmdline.c \
+ src/magenta.c \
+ src/netboot.c \
+ src/netifc.c \
+ src/inet6.c \
+ src/pci.c
+
+$(call efi_app, osboot, $(OSBOOT_FILES))
+$(call efi_app, usbtest, src/usbtest.c)
+
+ifneq ($(APP),)
+ APP := out/$(APP).efi
+else
+ APP := out/osboot.efi
+endif
+
+LIB_SRCS := \
+ lib/efi/guids.c \
+ lib/utils.c \
+ lib/loadfile.c \
+ lib/console-printf.c \
+ lib/ctype.c \
+ lib/stdlib.c \
+ lib/string.c
+LIB_SRCS += third_party/lk/src/printf.c
+
+LIB_OBJS := $(patsubst %.c,out/%.o,$(LIB_SRCS))
+DEPS += $(patsubst %.c,out/%.d,$(LIB_SRCS))
+
+out/libutils.a: $(LIB_OBJS)
+ @mkdir -p $(dir $@)
+ @echo archiving: $@
+ $(QUIET)rm -f $@
+ $(QUIET)ar rc $@ $^
+
+out/BOOTx64.EFI: $(APP)
+ @mkdir -p $(dir $@)
+ $(QUIET)cp -f $^ $@
+
+# generate a small IDE disk image for qemu
+out/disk.img: $(APPS) out/BOOTx64.EFI
+ @mkdir -p $(dir $@)
+ $(QUIET)./build/mkdiskimg.sh $@
+ @echo copying: $(APPS) README.txt to disk.img
+ $(QUIET)mcopy -o -i out/disk.img@@1024K $(APPS) README.txt ::
+ $(QUIET)mcopy -o -i out/disk.img@@1024K $(APPS) out/BOOTx64.EFI ::EFI/BOOT/
+
+ALL += out/disk.img
+
+-include $(DEPS)
+
+QEMU_OPTS := -cpu qemu64
+QEMU_OPTS += -bios third_party/ovmf/OVMF.fd
+QEMU_OPTS += -drive file=out/disk.img,format=raw,if=ide
+QEMU_OPTS += -serial stdio
+QEMU_OPTS += -m 256M
+ifneq ($(USBDEV),)
+ QEMU_OPTS += -usbdevice host:$(USBDEV)
+endif
+
+qemu-e1000: QEMU_OPTS += -netdev type=tap,ifname=qemu,script=no,id=net0 -net nic,model=e1000,netdev=net0
+qemu-e1000: all
+ qemu-system-x86_64 $(QEMU_OPTS)
+
+qemu: QEMU_OPTS += -net none
+qemu:: all
+ qemu-system-x86_64 $(QEMU_OPTS)
+
+out/nbserver: src/nbserver.c
+ @mkdir -p out
+ @echo building nbserver
+ $(QUIET)gcc -o out/nbserver -Isrc -Wall src/nbserver.c
+
+all: $(ALL) out/nbserver
+
+clean::
+ rm -rf out
+
+all-clean: clean
diff --git a/README.txt b/README.txt
index 029bed8..d22281f 100644
--- a/README.txt
+++ b/README.txt
@@ -1,3 +1,9 @@
+THIS PROJECT IS NO LONGER MAINTAINED.
+The gigaboot20x6 project is now hosted at
+https://fuchsia.googlesource.com/magenta in the bootloader/ directory.
+
+
+
What is This?
-------------