diff options
Diffstat (limited to 'rules/post/image_hd.make')
-rw-r--r-- | rules/post/image_hd.make | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/rules/post/image_hd.make b/rules/post/image_hd.make index 0b3841fbf..4e4ab2104 100644 --- a/rules/post/image_hd.make +++ b/rules/post/image_hd.make @@ -31,24 +31,8 @@ $(IMAGEDIR)/hd.img: @echo "Creating hdimg from root.ext2"; \ PATH=$(PTXCONF_SYSROOT_HOST)/bin:$$PATH $(PTXDIST_TOPDIR)/scripts/genhdimg \ -o $@ $(GENHDIMARGS) -ifdef PTXCONF_GRUB - @echo - @echo "-----------------------------------" - @echo "Making the image bootable with grub" - @echo "-----------------------------------" - @ptxd_make_bootable $@ $(PTXCONF_IMAGE_HD_PART1_START) $(GRUB_DIR)/stage1/stage1 $(GRUB_DIR)/stage2/stage2 -endif -ifdef PTXCONF_BAREBOX - @echo - @echo "--------------------------------------" - @echo "Making the image bootable with barebox" - @echo "--------------------------------------" -ifdef PTXCONF_ARCH_X86 - @$(BAREBOX_DIR)/scripts/setupmbr/setupmbr -s 32 -m $(IMAGEDIR)/barebox-image -d $@ -else - @ptxd_make_bootable $@ $(PTXCONF_IMAGE_HD_PART1_START) $(IMAGEDIR)/barebox-image -endif -endif + @$(call ptx/env) \ + ptxd_make_bootable $@ $(PTXCONF_IMAGE_HD_PART1_START) @echo "done." # vim: syntax=make |