Skip to content

Commit

Permalink
chore: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Feb 5, 2025
1 parent 4342692 commit 09e47b0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 09e47b0

Please sign in to comment.