Print this page
7438 intermittent build failures from the new boot loader
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/boot/sys/boot/i386/loader/Makefile
          +++ new/usr/src/boot/sys/boot/i386/loader/Makefile
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2015 Toomas Soome <tsoome@me.com>
       14 +# Copyright 2016 RackTop Systems.
  14   15  #
  15   16  
  16   17  include $(SRC)/Makefile.master
  17   18  
  18   19  CFLAGS= -O2
  19   20  CPPFLAGS= -DSTAND -nostdinc -I../../../../include -I../../..
  20   21  LOADER=         zfsloader
  21   22  NEWVERSWHAT=    "ZFS enabled bootstrap loader" x86
  22   23  MAN=
  23   24  
↓ open down ↓ 11 lines elided ↑ open up ↑
  35   36  GSTRIP=         $(GNU_ROOT)/bin/gstrip
  36   37  ROOT_BOOT=      $(ROOT)/boot
  37   38  ROOT_BOOT_DEFAULTS=     $(ROOT)/boot/defaults
  38   39  ROOT_BOOT_FORTH=        $(ROOT)/boot/forth
  39   40  ROOT_BOOT_CONF=         $(ROOT)/boot/conf.d
  40   41  ROOTBOOTFILES=$(FILES:%=$(ROOT_BOOT)/%)
  41   42  ROOTBOOTFORTH=$(FORTH:%=$(ROOT_BOOT_FORTH)/%)
  42   43  ROOTBOOTDEFAULTS=$(DEFFILES:%=$(ROOT_BOOT_DEFAULTS)/%)
  43   44  FILEMODE=0444
  44   45  
  45      -all: machine x86 ${LOADER} loader.help
       46 +all: ${LOADER} loader.help
  46   47  
  47   48  install: all $(ROOTBOOTLOADER)
  48   49  
  49   50  PROG=           ${LOADER}.sym
  50   51  INTERNALPROG=
  51   52  
  52   53  # architecture-specific loader code
  53   54  SRCS=           main.c conf.c vers.c chain.c
  54   55  
  55   56  CPPFLAGS +=     -DLOADER_TFTP_SUPPORT -DLOADER_GZIP_SUPPORT
↓ open down ↓ 81 lines elided ↑ open up ↑
 137  138  
 138  139  machine:
 139  140          $(RM) machine
 140  141          $(SYMLINK) ../../../i386/include machine
 141  142  
 142  143  x86:
 143  144          $(RM) x86
 144  145          $(SYMLINK) ../../../x86/include x86
 145  146  
 146  147  OBJS=           $(SRCS:%.c=%.o)
      148 +
      149 +${OBJS}: machine x86
 147  150  
 148  151  ${PROG}: ${OBJS} $(LDADD)
 149  152          $(LD) $(LDFLAGS) -o $@ $(BTXCRT) $(OBJS) $(LDADD)
 150  153  
 151  154  clean: clobber
 152  155  clobber:
 153  156          $(RM) $(CLEANFILES) $(OBJS)
 154  157  
 155  158  install: all $(ROOT_BOOT_DEFAULTS) $(ROOT_BOOT_FORTH) \
 156  159          $(ROOTBOOTFILES) $(ROOTBOOTDEFAULTS) $(ROOT_BOOT_CONF) $(ROOTBOOTFORTH)
↓ open down ↓ 18 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX