chore: simplify
This commit is contained in:
parent
434269241e
commit
09e47b07c2
1 changed files with 4 additions and 10 deletions
14
Makefile
14
Makefile
|
|
@ -19,7 +19,6 @@ PLATFORM := linux/amd64,linux/arm64,linux/arm/v6
|
|||
|
||||
# gokrazy image
|
||||
GOK_DIR := packaging/gokrazy
|
||||
GOK_NETDEV := user,id=net0,hostfwd=tcp::8080-:80,hostfwd=tcp::8022-:22,hostfwd=tcp::8888-:8080
|
||||
GOK := gok -i evcc --parent_dir $(GOK_DIR)
|
||||
IMAGE_FILE := evcc_$(TAG_NAME).img
|
||||
|
||||
|
|
@ -120,17 +119,12 @@ gok-image:: gok
|
|||
# gzip -f $(IMAGE_FILE)
|
||||
|
||||
# run qemu
|
||||
gok-run:: gok
|
||||
${GOK} vm run --netdev $(GOK_NETDEV)
|
||||
|
||||
# run qemu on mac
|
||||
gok-mac:: gok
|
||||
mv $(GOK_DIR)/evcc/config.json $(GOK_DIR)/evcc/linux.json
|
||||
sed 's!"SerialConsole": "ttyAMA0,115200"!"KernelPackage": "github.com/gokrazy/kernel.arm64",'\\n' "SerialConsole": "ttyAMA0,115200"!g' $(GOK_DIR)/evcc/linux.json > $(GOK_DIR)/evcc/config.json
|
||||
${GOK} vm run --netdev $(GOK_NETDEV)
|
||||
gok-vm:: gok
|
||||
${GOK} vm run --netdev user,id=net0,hostfwd=tcp::8080-:80,hostfwd=tcp::8022-:22,hostfwd=tcp::8888-:8080
|
||||
|
||||
# update instance
|
||||
gok-update::
|
||||
${GOK} update yes $(IMAGE_OPTIONS)
|
||||
${GOK} update yes
|
||||
|
||||
soc::
|
||||
@echo Version: $(VERSION) $(SHA) $(BUILD_DATE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue