Skip to content

Commit

Permalink
Changed python to python3 in Makefile, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
asutoshpalai committed May 29, 2017
1 parent 5143c17 commit b741d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ build/os-image: boot/boot_sector.bin boot/boot_loader.bin os/kernel.bin

boot/boot_loader.bin: boot/boot_loader.s os/kernel.bin
$(eval KERNEL_SIZE=$(shell stat -c"%s" os/kernel.bin))
$(eval KERNEL_SECTORS=$(shell python -c "import math; print (math.ceil($(KERNEL_SIZE).0 / 512))"))
$(eval KERNEL_SECTORS=$(shell python3 -c "import math; print (math.ceil($(KERNEL_SIZE).0 / 512))"))
nasm $< -I"$(shell dirname $<)/" -f bin -dKERNEL_SIZE=$(KERNEL_SECTORS) -o $@

boot/boot_sector.bin: boot/boot_sector.s boot/boot_loader.bin
$(eval BOOTLOADER_SIZE=$(shell stat -c"%s" boot/boot_loader.bin))
$(eval BOOTLOADER_SECTORS=$(shell python -c "import math; print (math.ceil($(BOOTLOADER_SIZE).0 / 512))"))
$(eval BOOTLOADER_SECTORS=$(shell python3 -c "import math; print (math.ceil($(BOOTLOADER_SIZE).0 / 512))"))
nasm $< -I"$(shell dirname $<)/" -f bin -dBOOT_LOADER_SIZE=$(BOOTLOADER_SECTORS) -o $@

os/kernel.bin: $(KERNEL_OBJ_LIST)
Expand Down

0 comments on commit b741d58

Please sign in to comment.