diff --git a/.gitignore b/.gitignore
index 759b73c..9b64f83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,6 +2,7 @@
build/
target/
Cargo.lock
+*.bin*
# Prerequisites
*.d
diff --git a/Makefile b/Makefile
index a15505c..373cfd1 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,8 @@ all: clean build kvs kvg tools
kvs: build build/$(ARCH)/bin/kvs
kvg: build build/$(ARCH)/bin/kvg
+.PHONY: build
+
tools: build $(TOOL_BINS)
build/$(ARCH)/tools/%: build/$(ARCH)/tools/%.o
@@ -67,6 +69,10 @@ build/$(ARCH)/bin/kvg: src/KVG/main.rs
install:
cp -r build/* /usr/local/
-clean:
- rm -rf build
- rm -rf target
+ clean:
+ rm -rf build/$(ARCH)
+ rm -rf target/$(TARGET)
+
+deepclean:
+ rm -rf build
+ rm -rf target
diff --git a/README.md b/README.md
index 77e4966..2e85195 100644
--- a/README.md
+++ b/README.md
@@ -4,8 +4,10 @@ KVS: Kernel Version Switcher (anti-rollback rollbacker)
[](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvs.yaml)
[](https://github.com/kxtzownsu/KVS-private/actions/workflows/kvg.yaml)
- my first real C project, the code may look like shit, dont get mad at me because of it! :3
+ my first real C project, the code may look like shit, dont get mad at me because of it!
+> [!IMPORTANT]
+> This requires an unenrolled device. Any errors relating to being enrolled will be ignored and closed.
## Build Instructions
1) Clone the repo:
diff --git a/shim-builder/builder.sh b/shim-builder/builder.sh
index c0d31a1..9060554 100755
--- a/shim-builder/builder.sh
+++ b/shim-builder/builder.sh
@@ -3,7 +3,7 @@
SCRIPT_DIR=$(dirname "$0")
VERSION=2.0.0
-HOST_ARCH=$(lscpu | grep Architecture | awk '{print $2}')
+HOST_ARCH=$(arch)
if [ $HOST_ARCH == "x86_64" ]; then
CGPT="$SCRIPT_DIR/bins/cgpt.x86-64"
SFDISK="$SCRIPT_DIR/bins/sfdisk.x86-64"
diff --git a/src/KVS/main.c b/src/KVS/main.c
index e6366f0..5b780c2 100644
--- a/src/KVS/main.c
+++ b/src/KVS/main.c
@@ -24,7 +24,6 @@ int main(int argc, char **argv) {
exit(1);
}
- // example values for testing
const char* fwver = getFirmwareVersion();
const char* tpmver = getTpmVersion();
const char* fwmp = getFWMPFlags();
diff --git a/website/index.html b/website/index.html
index af87195..55ef382 100644
--- a/website/index.html
+++ b/website/index.html
@@ -31,6 +31,7 @@
This works using the hexdumps of 0x1008 (kernver TPM index) and tpmc
to write the hexdumps of your selected kernver to the 0x1008 TPM index.
YOU MUST BE UNENROLLED TO USE KVS! ANY ISSUES REPORTED RELATING TO BEING ENROLLED WHILE TRYING TO USE THIS WILL GET CLOSED IMMEDIATELY
To use KVS, you must download your shim from kxtz' shim mirror
After downloading, flash your USB/SD with the file, I recommend Chrome Recovery Utility.
@@ -46,7 +47,6 @@kernver 0: any
kernver 1: any
kernver 2: 112 - 119
-kernver 3: 120 - 124
kernver 4: 125 - latest
A: literally none, its just cool to see