]> Chaos Git - corbenik/corbenik.git/commitdiff
Rename vco -> modules
authorchaoskagami <chaos.kagami@gmail.com>
Mon, 23 May 2016 07:04:18 +0000 (03:04 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Mon, 23 May 2016 07:04:18 +0000 (03:04 -0400)
31 files changed:
Makefile
host/compile_header.c [moved from vco/template/tool/compile_header.c with 100% similarity]
modules/Makefile [moved from vco/Makefile with 100% similarity]
modules/README.txt [moved from vco/README.txt with 100% similarity]
modules/template/Makefile [moved from vco/template/Makefile with 100% similarity]
modules/template/linker.ld [moved from vco/template/linker.ld with 100% similarity]
modules/template/meta/cfw_version [moved from vco/signatures/meta/cfw_version with 100% similarity]
modules/template/meta/deps [moved from vco/signatures/meta/deps with 100% similarity]
modules/template/meta/desc [moved from vco/template/meta/desc with 100% similarity]
modules/template/meta/name [moved from vco/template/meta/name with 100% similarity]
modules/template/meta/patch_version [moved from vco/signatures/meta/patch_version with 100% similarity]
modules/template/meta/title [moved from vco/signatures/meta/title with 100% similarity]
modules/template/meta/uuid [moved from vco/signatures/meta/uuid with 100% similarity]
modules/template/src/exported.h [moved from vco/template/src/exported.h with 100% similarity]
modules/template/src/headers.h [moved from vco/template/src/headers.h with 100% similarity]
modules/template/src/main.c [moved from vco/template/src/main.c with 100% similarity]
modules/template/src/start.s [moved from vco/template/src/start.s with 100% similarity]
vco/signatures/Makefile [deleted symlink]
vco/signatures/linker.ld [deleted symlink]
vco/signatures/meta/desc [deleted file]
vco/signatures/meta/name [deleted file]
vco/signatures/src/exported.h [deleted symlink]
vco/signatures/src/headers.h [deleted symlink]
vco/signatures/src/main.c [deleted file]
vco/signatures/src/start.s [deleted symlink]
vco/signatures/tool [deleted symlink]
vco/template/meta/cfw_version [deleted file]
vco/template/meta/deps [deleted file]
vco/template/meta/patch_version [deleted file]
vco/template/meta/title [deleted file]
vco/template/meta/uuid [deleted file]

index 3d51d573310e60e8c6b7d1fd18c4be7ed4179f70..061813b0c6742b34f17493051c9e17ec964cd1d5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,11 +28,11 @@ objects_cfw = $(patsubst $(dir_source)/%.s, $(dir_build)/%.o, \
                          $(call rwildcard, $(dir_source), *.s *.c)))
 
 .PHONY: all
-all: a9lh vco external
+all: a9lh modules external
 
-.PHONY: vco
-vco:
-       make -C vco
+.PHONY: modules
+modules:
+       make -C modules
 
 .PHONY: external
 external:
@@ -43,7 +43,7 @@ a9lh: $(dir_out)/arm9loaderhax.bin
 
 .PHONY: clean
 clean:
-       make -C vco clean
+       make -C modules clean
        make -C external clean
        rm -rf $(dir_out) $(dir_build)
 
similarity index 100%
rename from vco/Makefile
rename to modules/Makefile
similarity index 100%
rename from vco/README.txt
rename to modules/README.txt
diff --git a/vco/signatures/Makefile b/vco/signatures/Makefile
deleted file mode 120000 (symlink)
index 25eaf27..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../template/Makefile
\ No newline at end of file
diff --git a/vco/signatures/linker.ld b/vco/signatures/linker.ld
deleted file mode 120000 (symlink)
index 6577326..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../template/linker.ld
\ No newline at end of file
diff --git a/vco/signatures/meta/desc b/vco/signatures/meta/desc
deleted file mode 100644 (file)
index 8496ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Patches signatures in NATIVE_FIRM.
diff --git a/vco/signatures/meta/name b/vco/signatures/meta/name
deleted file mode 100644 (file)
index 25dc00f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-NATIVE_FIRM Signature Patch
diff --git a/vco/signatures/src/exported.h b/vco/signatures/src/exported.h
deleted file mode 120000 (symlink)
index 0cbf2cf..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../template/src/exported.h
\ No newline at end of file
diff --git a/vco/signatures/src/headers.h b/vco/signatures/src/headers.h
deleted file mode 120000 (symlink)
index 0be6138..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../template/src/headers.h
\ No newline at end of file
diff --git a/vco/signatures/src/main.c b/vco/signatures/src/main.c
deleted file mode 100644 (file)
index e343842..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-#include <stdint.h>
-#include <stddef.h>
-#include "exported.h"
-
-uint8_t pat1[] = {0xC0, 0x1C, 0x76, 0xE7};
-uint8_t pat2[] = {0xB5, 0x22, 0x4D, 0x0C};
-
-// See asm/sigpatches.s for the code here
-uint8_t sigpatch[] = {0x00, 0x20, 0x70, 0x47};
-
-uint8_t *firm_mem, *off, *off2;
-uint32_t size = 0;
-exefs_h* firm_p9_exefs;
-
-int main() {
-    //Look for signature checks
-       fprintf(stderr, "Applying signature patch\n");
-
-       firm_p9_exefs = get_firm_proc9_exefs();
-
-       fprintf(stderr, "ExeFS: 0x%x\n", firm_p9_exefs);
-
-       // The code segment.
-       firm_mem = (uint8_t*)firm_p9_exefs + sizeof(exefs_h) + firm_p9_exefs->fileHeaders[0].offset;
-       size     = firm_p9_exefs->fileHeaders[0].size;
-
-       fprintf(stderr, "Search, P0.\n");
-    off  = memfind(firm_mem, size, pat1, 4);
-
-       if (off == NULL) {
-               fprintf(stderr, "Failed, P0.\n");
-               return 1; // Failed to find sigpatch. Ugh.
-       }
-
-       // We're subbing one because the code goes back 1.
-       // Unique patterns, etc.
-       fprintf(stderr, "Search, P1.\n");
-    off2 = memfind(firm_mem, size, pat2, 4) - 1;
-
-       if (off2 == NULL) {
-               fprintf(stderr, "Failed, P1.\n");
-               return 2; // Failed to find sigpatch. Ugh.
-       }
-
-       fprintf(stderr, "Signatures, P0, 0x%x\n", (uint32_t)off);
-       memcpy(off,  sigpatch, 2);
-
-       fprintf(stderr, "Signatures, P1, 0x%x\n", (uint32_t)off2);
-       memcpy(off2, sigpatch, 4);
-
-       fprintf(stderr, "Succeded.\n");
-
-       return 0;
-}
diff --git a/vco/signatures/src/start.s b/vco/signatures/src/start.s
deleted file mode 120000 (symlink)
index e408660..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../../template/src/start.s
\ No newline at end of file
diff --git a/vco/signatures/tool b/vco/signatures/tool
deleted file mode 120000 (symlink)
index 37fac4b..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../template/tool/
\ No newline at end of file
diff --git a/vco/template/meta/cfw_version b/vco/template/meta/cfw_version
deleted file mode 100644 (file)
index 573541a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/vco/template/meta/deps b/vco/template/meta/deps
deleted file mode 100644 (file)
index b0047fa..0000000
+++ /dev/null
@@ -1 +0,0 @@
-None
diff --git a/vco/template/meta/patch_version b/vco/template/meta/patch_version
deleted file mode 100644 (file)
index d00491f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/vco/template/meta/title b/vco/template/meta/title
deleted file mode 100644 (file)
index 8380236..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Native
diff --git a/vco/template/meta/uuid b/vco/template/meta/uuid
deleted file mode 100644 (file)
index d00491f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-1