Advertisement
devinteske

Quick makefile to speed up EFI loader testing

Apr 27th, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 0.33 KB | None | 0 0
  1. SRCDIR= /tmp/image
  2. OUTPUT= /tmp/img
  3. EFIFAT= boot1.efifat
  4. DEPS=   $(SRCDIR)/boot/support.4th \
  5.         $(SRCDIR)/boot/loader.conf
  6.  
  7. all: /tmp/img
  8.  
  9. $(OUTPUT): $(OUTPUT).part
  10.         mkimg -s gpt -p efi:=$(EFIFAT) -p freebsd-ufs:=$(>) -o $(@)
  11.  
  12. $(OUTPUT).part: $(DEPS)
  13.         makefs -B little -o label=FreeBSD_Install $(@) $(SRCDIR)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement