Print this page
7438 intermittent build failures from the new boot loader
Reviewed by: Juraj Lutter <juraj.lutter@erigones.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>

@@ -9,31 +9,37 @@
 # http://www.illumos.org/license/CDDL.
 #
 
 #
 # Copyright 2015 Toomas Soome <tsoome@me.com>
+# Copyright 2016 RackTop Systems.
 #
 
 include $(SRC)/Makefile.master
 
 
 # likely targets for removal, keeping around just in case...
 # SUBDIRS=      boot0 boot0sio kgzldr libfirewire 
 # current targets
 SUBDIRS=        pmbr btx cdboot gptzfsboot libi386 loader pxeldr
-INSTDIRS=       pmbr cdboot gptzfsboot loader pxeldr
+
+# these subdirs depend on crt0.o which is built in the btx
+# subdir.
+CRTDIRS=        gptzfsboot loader
 
 all:=           TARGET= all
 install:=       TARGET= install
 clean:=         TARGET= clean
 clobber:=       TARGET= clobber
 
 .KEEP_STATE:
 
 all clean clobber: $(SUBDIRS)
 
-install: all $(INSTDIRS)
+$(CRTDIRS): btx
+
+install: $(SUBDIRS)
 
 FRC:
 
 $(SUBDIRS): FRC
         @cd $@; pwd; $(MAKE) $(TARGET)