Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeySlice committed Sep 3, 2023
2 parents 2aca955 + 54d9c5e commit 7d21f54
Show file tree
Hide file tree
Showing 13 changed files with 3,274 additions and 1,371 deletions.
2,652 changes: 1,327 additions & 1,325 deletions CloverPackage/CloverV2/EFI/CLOVER/config-sample.plist

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# dump NVRAM for UEFI Clover with EmuVariable or Legacy Clover
#
# Script version info
gScriptVersion=1.16.6
gScriptVersion=1.16.7
#================================= GLOBAL VARS ==================================
#
# The script expects '0.5' but non-US localizations use '0,5' so we export
Expand Down Expand Up @@ -44,7 +44,7 @@ fi
# Variables
#
gNVRAMf=nvram.plist
gNVRAMbuf=$(nvram -x -p)
gNVRAMbuf=$(nvram2 -x -p)
gNVRAMLogPath="${CLOVER_LOG_LOCATION}/rc.shutdown.log"
gDisk=($(ls /dev/disk? |grep -i -o "disk[0-9]"))
gESPList=""
Expand Down
2 changes: 2 additions & 0 deletions CloverPackage/package/buildpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,13 @@ fi
# ditto --noextattr --noqtn ${SYMROOT}/utils/clover-genconfig ${PKG_BUILD_DIR}/${choiceId}/Root/Private/tmp/usr/local/bin/
ditto --noextattr --noqtn ${SYMROOT}/utils/partutil ${PKG_BUILD_DIR}/${choiceId}/Root/Private/tmp/usr/local/bin/
# ditto --noextattr --noqtn ${SYMROOT}/utils/espfinder ${PKG_BUILD_DIR}/${choiceId}/Root/Private/tmp/usr/local/bin/
ditto --noextattr --noqtn ${SYMROOT}/utils/nvram2 ${PKG_BUILD_DIR}/${choiceId}/Root/Private/tmp/usr/local/bin/
fixperms "${PKG_BUILD_DIR}/${choiceId}/Root/"
#chmod 755 "${PKG_BUILD_DIR}/${choiceId}"/Root/Private/tmp/usr/local/bin/{bdmesg,clover-genconfig,partutil,espfinder}
# chmod 755 "${PKG_BUILD_DIR}/${choiceId}"/Root/Private/tmp/usr/local/bin/{bdmesg,partutil}
chmod 755 "${PKG_BUILD_DIR}/${choiceId}"/Root/Private/tmp/usr/local/bin/partutil
chmod 755 "${PKG_BUILD_DIR}/${choiceId}"/Root/usr/local/bin/bdmesg
chmod 755 "${PKG_BUILD_DIR}/${choiceId}"/Root/usr/local/bin/nvram2
packageRefId=$(getPackageRefId "${packagesidentity}" "${choiceId}")
packageUtilsRefId=$packageRefId
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/"
Expand Down
2 changes: 1 addition & 1 deletion CloverPackage/utils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ include $(CURDIR)/Make.rules
#fdisk440 out
#clover-genconfig temporary out
#espfinder out
SUBDIRS = boot1-install partutil bdmesg
SUBDIRS = boot1-install partutil bdmesg nvram

all: all-recursive
26 changes: 26 additions & 0 deletions CloverPackage/utils/nvram/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

PROGRAM = nvram2

SRCROOT := $(abspath $(CURDIR)/..)
SYMROOT := $(abspath $(CURDIR)/../../sym)
OBJROOT := $(SYMROOT)/build/$(PROGRAM)
INSTALL_DIR_NAME=utils
UTILSDIR= $(SYMROOT)/$(INSTALL_DIR_NAME)


SRC := $(wildcard $(PROGRAM)/*.c)
PROG := $(addprefix $(UTILSDIR)/, $(PROGRAM))

all: $(PROG)

$(PROG): $(SRC)
@echo "\t[CXX] $(PROGRAM)"
@cc -o $(PROGRAM) $(PROGRAM).c -framework CoreFoundation -framework IOKit -Wall >/dev/null
@mv $(PROGRAM) $(UTILSDIR)

install-local: $(PROG)
@sudo install -d -g 0 -o 0 /usr/local/bin
@sudo install -psv -g 0 -o 0 $(PROG) /usr/local/bin

clean-local:
@rm -rf $(OBJROOT) *~
Loading

0 comments on commit 7d21f54

Please sign in to comment.