]> Chaos Git - corbenik/corbenik.git/commitdiff
Restructure source code
authorchaoskagami <chaos.kagami@gmail.com>
Tue, 10 Jan 2017 13:57:54 +0000 (08:57 -0500)
committerchaoskagami <chaos.kagami@gmail.com>
Tue, 10 Jan 2017 13:57:54 +0000 (08:57 -0500)
63 files changed:
Makefile.am
TODO.txt [deleted file]
bits/Makefile [moved from external/bits/Makefile with 100% similarity]
bits/README.md [moved from external/bits/README.md with 100% similarity]
bits/backdoor.s [moved from external/bits/backdoor.s with 100% similarity]
bits/chain.s [moved from external/bits/chain.s with 100% similarity]
bits/emunand.s [moved from external/bits/emunand.s with 100% similarity]
bits/link.ld [moved from external/bits/link.ld with 100% similarity]
bits/reboot_code.s [moved from external/bits/reboot_code.s with 100% similarity]
bits/reboot_hook.s [moved from external/bits/reboot_hook.s with 100% similarity]
bits/stub.s [moved from external/bits/stub.s with 100% similarity]
boot/Makefile.am [moved from source/Makefile.am with 100% similarity]
boot/arm11.c [moved from source/arm11.c with 100% similarity]
boot/chainloader.c [moved from source/chainloader.c with 100% similarity]
boot/configback/dummy.c [moved from source/configback/dummy.c with 100% similarity]
boot/configback/file-dat.c [moved from source/configback/file-dat.c with 100% similarity]
boot/corbenik.c [moved from source/corbenik.c with 100% similarity]
boot/firm/decryptor.c [moved from source/firm/decryptor.c with 100% similarity]
boot/firm/firm.c [moved from source/firm/firm.c with 100% similarity]
boot/firm/firmlaunch.c [moved from source/firm/firmlaunch.c with 100% similarity]
boot/firm/keys.c [moved from source/firm/keys.c with 100% similarity]
boot/firm/util.c [moved from source/firm/util.c with 100% similarity]
boot/firm/version.c [moved from source/firm/version.c with 100% similarity]
boot/input.c [moved from source/input.c with 100% similarity]
boot/interpreter.c [moved from source/interpreter.c with 100% similarity]
boot/interrupt.c [moved from source/interrupt.c with 100% similarity]
boot/linker.ld [moved from source/linker.ld with 100% similarity]
boot/menu-backend.c [moved from source/menu-backend.c with 100% similarity]
boot/menu.c [moved from source/menu.c with 100% similarity]
boot/patch/emunand.c [moved from source/patch/emunand.c with 100% similarity]
boot/patch/module.c [moved from source/patch/module.c with 100% similarity]
boot/patch/reboot.c [moved from source/patch/reboot.c with 100% similarity]
boot/patch/svc.c [moved from source/patch/svc.c with 100% similarity]
boot/patcher.c [moved from source/patcher.c with 100% similarity]
boot/start.s [moved from source/start.s with 100% similarity]
boot/std/abort.c [moved from source/std/abort.c with 100% similarity]
boot/std/draw.c [moved from source/std/draw.c with 100% similarity]
boot/std/fs.c [moved from source/std/fs.c with 100% similarity]
boot/std/memory.c [moved from source/std/memory.c with 100% similarity]
configure.ac
external/Makefile.am
external/contrib_patch/2x-firmprot.pco [moved from contrib/2x-firmprot.pco with 100% similarity]
external/contrib_patch/Makefile [moved from contrib/Makefile with 82% similarity]
external/contrib_patch/README.md [moved from contrib/README.md with 100% similarity]
external/contrib_patch/mysterymachine.pco [moved from contrib/mysterymachine.pco with 100% similarity]
external/contrib_patch/remove_outlines-sm.pco [moved from contrib/remove_outlines-sm.pco with 100% similarity]
external/contrib_patch/svc_permission_chk_dis.pco [moved from contrib/svc_permission_chk_dis.pco with 100% similarity]
loader/LICENSE [moved from external/loader/LICENSE with 100% similarity]
loader/Makefile [moved from external/loader/Makefile with 100% similarity]
loader/README.md [moved from external/loader/README.md with 100% similarity]
loader/loader.rsf [moved from external/loader/loader.rsf with 100% similarity]
loader/source/interp.c [moved from external/loader/source/interp.c with 100% similarity]
loader/source/interp.h [moved from external/loader/source/interp.h with 100% similarity]
loader/source/loader.c [moved from external/loader/source/loader.c with 100% similarity]
loader/source/logger.c [moved from external/loader/source/logger.c with 100% similarity]
loader/source/logger.h [moved from external/loader/source/logger.h with 100% similarity]
loader/source/memory.c [moved from external/loader/source/memory.c with 100% similarity]
loader/source/memory.h [moved from external/loader/source/memory.h with 100% similarity]
loader/source/patcher.c [moved from external/loader/source/patcher.c with 100% similarity]
loader/source/patcher.h [moved from external/loader/source/patcher.h with 100% similarity]
loader/source/statics.c [moved from external/loader/source/statics.c with 100% similarity]
test/Makefile [deleted file]
test/vm-test1.pco [deleted file]

index 658bd0413747d35ad12c76e5aa7cb8eff3dec0f8..ae8b1eb0e445cc339683f343007201ff31eb01aa 100644 (file)
@@ -1,15 +1,18 @@
-SUBDIRS = include host external source patch contrib
+SUBDIRS = include host external source patch loader bits
+
 ACLOCAL_AMFLAGS = -I m4
 
-source: include host external patch contrib
+source: include host external patch
 
 external: include host
 
+loader: external
+
 install:
        @echo "Please don't call the install target directly, it doesn't work."
        @exit 1
 
-all-local:
+all-local: external loader source bits
        mkdir -p out
        mkdir -p out@prefix@
        mkdir -p out@libdir@/module
@@ -30,7 +33,7 @@ all-local:
        cp external/bits/*.bin out@libexecdir@/
        cp host/termfont.bin out@datarootdir@/
        cp patch/*.vco out@sbindir@
-       cp contrib/*.vco out@bindir@
+       cp external/contrib_patch/*.vco out@bindir@
        cat host/generate_localeemu.sh.in | sed "s|\@localedir\@|@localedir@|g" > out/generate_localeemu.sh
        chmod +x out/generate_localeemu.sh
        cat host/o3ds_firm.sh.in | sed "s|\@libdir\@|@libdir@|g" > out/o3ds_firm.sh
diff --git a/TODO.txt b/TODO.txt
deleted file mode 100644 (file)
index 5d293db..0000000
--- a/TODO.txt
+++ /dev/null
@@ -1 +0,0 @@
-Note that the branch name here is now a misnomer. It should be called wip/the_great_unclusterfuck now. Really.
similarity index 100%
rename from external/bits/Makefile
rename to bits/Makefile
similarity index 100%
rename from external/bits/README.md
rename to bits/README.md
similarity index 100%
rename from external/bits/backdoor.s
rename to bits/backdoor.s
similarity index 100%
rename from external/bits/chain.s
rename to bits/chain.s
similarity index 100%
rename from external/bits/emunand.s
rename to bits/emunand.s
similarity index 100%
rename from external/bits/link.ld
rename to bits/link.ld
similarity index 100%
rename from external/bits/stub.s
rename to bits/stub.s
similarity index 100%
rename from source/Makefile.am
rename to boot/Makefile.am
similarity index 100%
rename from source/arm11.c
rename to boot/arm11.c
similarity index 100%
rename from source/chainloader.c
rename to boot/chainloader.c
similarity index 100%
rename from source/corbenik.c
rename to boot/corbenik.c
similarity index 100%
rename from source/firm/firm.c
rename to boot/firm/firm.c
similarity index 100%
rename from source/firm/keys.c
rename to boot/firm/keys.c
similarity index 100%
rename from source/firm/util.c
rename to boot/firm/util.c
similarity index 100%
rename from source/firm/version.c
rename to boot/firm/version.c
similarity index 100%
rename from source/input.c
rename to boot/input.c
similarity index 100%
rename from source/interpreter.c
rename to boot/interpreter.c
similarity index 100%
rename from source/interrupt.c
rename to boot/interrupt.c
similarity index 100%
rename from source/linker.ld
rename to boot/linker.ld
similarity index 100%
rename from source/menu-backend.c
rename to boot/menu-backend.c
similarity index 100%
rename from source/menu.c
rename to boot/menu.c
similarity index 100%
rename from source/patch/emunand.c
rename to boot/patch/emunand.c
similarity index 100%
rename from source/patch/module.c
rename to boot/patch/module.c
similarity index 100%
rename from source/patch/reboot.c
rename to boot/patch/reboot.c
similarity index 100%
rename from source/patch/svc.c
rename to boot/patch/svc.c
similarity index 100%
rename from source/patcher.c
rename to boot/patcher.c
similarity index 100%
rename from source/start.s
rename to boot/start.s
similarity index 100%
rename from source/std/abort.c
rename to boot/std/abort.c
similarity index 100%
rename from source/std/draw.c
rename to boot/std/draw.c
similarity index 100%
rename from source/std/fs.c
rename to boot/std/fs.c
similarity index 100%
rename from source/std/memory.c
rename to boot/std/memory.c
index 9581a7a908d8ca53758cc79811763e356db9853d..cd9170872d41957c54860bf000d334c910794c23 100644 (file)
@@ -23,7 +23,7 @@ CHAINLOADER=1
 test "$enable_chainloader" = "no" && CHAINLOADER=0
 AC_DEFINE_UNQUOTED([CHAINLOADER], [$CHAINLOADER])
 
-AC_CONFIG_FILES([Makefile source/Makefile external/Makefile include/Makefile])
+AC_CONFIG_FILES([Makefile boot/Makefile external/Makefile include/Makefile])
 
 AC_CONFIG_SUBDIRS([external/libctr9])
 
index 148f4de3b602c987e58069fed61337428d76d5b9..d60b1df41641c00fa0df8330e8b63cd0deea2a2e 100644 (file)
@@ -1,5 +1,3 @@
-SUBDIRS = libctr9 ctrulib/libctru loader bits
-
-loader: ctrulib/libctru
+SUBDIRS = libctr9 ctrulib/libctru contrib_patch
 
 install:
similarity index 82%
rename from contrib/Makefile
rename to external/contrib_patch/Makefile
index 3dc0cfc5d51b50422929e3b5f09b37d0914466f3..ff0c9892520f02cac69ccdf2132bb4561a170bff 100644 (file)
@@ -8,7 +8,7 @@ build: clean $(patsubst %.pco, %.vco, $(wildcard *.pco))
 install:
 
 %.vco: %.pco
-       ../host/bytecode_asm.py $< $@
+       ../../host/bytecode_asm.py $< $@
 
 clean:
        rm -f *.vco
similarity index 100%
rename from external/loader/LICENSE
rename to loader/LICENSE
similarity index 100%
rename from external/loader/Makefile
rename to loader/Makefile
similarity index 100%
rename from external/loader/README.md
rename to loader/README.md
similarity index 100%
rename from external/loader/loader.rsf
rename to loader/loader.rsf
diff --git a/test/Makefile b/test/Makefile
deleted file mode 100644 (file)
index 3dc0cfc..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-.PHONY: all
-all: build
-
-.PHONY: build
-build: clean $(patsubst %.pco, %.vco, $(wildcard *.pco))
-
-.PHONY: install
-install:
-
-%.vco: %.pco
-       ../host/bytecode_asm.py $< $@
-
-clean:
-       rm -f *.vco
diff --git a/test/vm-test1.pco b/test/vm-test1.pco
deleted file mode 100644 (file)
index e6b0610..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-# $name  Test Suite (DO NOT ENABLE)
-# $desc  THIS IS FOR INTERNAL USE ONLY BY UNIT TESTS. DO NOT ENABLE IT.
-# $title 0000000000000000
-# $ver   00
-# $uuid  FF
-
-find "test"
-abortnf
-set  "best"
-