Skip to content
Snippets Groups Projects
Commit 872542b8 authored by Luis Gerhorst's avatar Luis Gerhorst
Browse files

simplify Makefile

parent a1a08deb
No related branches found
No related tags found
No related merge requests found
# Path to linux sources relative to intsight root. Set this to your /path/to/linux-sources # Path to linux sources relative to intsight root. Set this to your /path/to/linux-sources
KDIR=/path/to/linux KDIR=/path/to/linux
VMHD=/path/to/vmhd.img VMHD=vmhd.img
DIR=arch/arm/intsight BZIMAGE=$(KDIR)/arch/x86_64/boot/bzImage
ROOT=../../.. INTSIGHT_ROOT=../../..
all: update-injected-files .PHONY: all clean update-injected-files test
cd $(ROOT) && $(MAKE) -j 4 bzImage -C $(KDIR)
all: $(BZIMAGE)
$(BZIMAGE):
cd $(INTSIGHT_ROOT) && $(MAKE) -j 4 bzImage -C $(KDIR)
update-injected-files: update-injected-files:
cd $(ROOT) && ./update-files.sh $(KDIR) cd $(INTSIGHT_ROOT) && ./update-files.sh $(KDIR)
clean: clean:
rm -f *.o .*.o.cmd rm -f *.o .*.o.cmd
test: all test: $(BZIMAGE) $(VMHD)
kvm -m 4096 -smp 4 -nodefaults -nographic \ kvm -m 4096 -smp 4 -nodefaults -nographic \
-echr 0x01 \ -echr 0x01 \
-serial mon:stdio \ -serial mon:stdio \
-net user,hostfwd=tcp::22108-:22 \ -net user,hostfwd=tcp::22108-:22 \
-net nic,model=virtio -net user \ -net nic,model=virtio -net user \
-drive file=$(VMHD),if=virtio,cache=writeback \ -drive file=$(VMHD),if=virtio,cache=writeback \
-kernel $(KDIR)/arch/x86_64/boot/bzImage -append "console=ttyS0 priority=low root=/dev/vda1" -kernel $(BZIMAGE) -append "console=ttyS0 priority=low root=/dev/vda1"
"$@" "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment