make-rules/build-zone.mk
changeset 5 b0dcdd332e2c
parent 4 3d5acfe9dab4
child 11 0839bb401298
equal deleted inserted replaced
4:3d5acfe9dab4 5:b0dcdd332e2c
    40 # tasks that might othwise slow down the initial boot of a new build zone.
    40 # tasks that might othwise slow down the initial boot of a new build zone.
    41 # Also, all customizations of the template zone will only propagate to the build
    41 # Also, all customizations of the template zone will only propagate to the build
    42 # zones when they are created.
    42 # zones when they are created.
    43 #
    43 #
    44 
    44 
    45 ZONECFG =	/usr/sbin/zonecfg
    45 ZONECFG =		/usr/sbin/zonecfg
    46 ZONEADM =	/usr/sbin/zoneadm
    46 ZONEADM =		/usr/sbin/zoneadm
    47 TZ=		$(shell sed -e '/^TZ=/!d' -e 's;TZ=;;' /etc/default/init)
    47 TZ=			$(shell sed -e '/^TZ=/!d' -e 's;TZ=;;' /etc/default/init)
    48 
    48 
    49 ZONESCFG_DIR =		/etc/zones
    49 ZONESCFG_DIR =		/etc/zones
    50 BUILD_ZONE_SPACE =	/rpool/zones
    50 BUILD_ZONE_SPACE =	/rpool/zones
    51 
    51 
    52 TOUCH =		/usr/bin/touch
    52 TOUCH =			/usr/bin/touch
    53 
    53 
    54 SYSIDCFG =	root/etc/sysidcfg
    54 SYSIDCFG =		root/etc/sysidcfg
    55 ZI_TAG =	root/.installed
    55 ZI_TAG =		root/.installed
    56 
    56 
    57 # the name of the template build zone
    57 # the name of the template build zone
    58 TMPL_ZONE_NAME =	template-build-zone
    58 TMPL_ZONE_NAME =	template-build-zone
    59 
    59 
    60 # the default package set to add to the template build zone.
    60 # the default package set to add to the template build zone.
    61 TMPL_ZONE_PKGS =	sunstudio12u1
    61 TMPL_ZONE_PKGS +=	archiver/gnu-tar
    62 TMPL_ZONE_PKGS +=	gcc-3
    62 TMPL_ZONE_PKGS +=	compress/bzip2
    63 TMPL_ZONE_PKGS +=	gnu-make
    63 TMPL_ZONE_PKGS +=	compress/gzip
    64 TMPL_ZONE_PKGS +=	autoconf
    64 TMPL_ZONE_PKGS +=	compress/p7zip
    65 TMPL_ZONE_PKGS +=	automake-110
    65 TMPL_ZONE_PKGS +=	compress/unzip
    66 TMPL_ZONE_PKGS +=	libtool
    66 TMPL_ZONE_PKGS +=	developer/build/ant
       
    67 TMPL_ZONE_PKGS +=	developer/build/autoconf
       
    68 TMPL_ZONE_PKGS +=	developer/build/automake-110
       
    69 TMPL_ZONE_PKGS +=	developer/build/gnu-make
       
    70 TMPL_ZONE_PKGS +=	developer/build/libtool
       
    71 TMPL_ZONE_PKGS +=	developer/build/make
       
    72 TMPL_ZONE_PKGS +=	developer/gnome/gettext
       
    73 TMPL_ZONE_PKGS +=	developer/linker
       
    74 TMPL_ZONE_PKGS +=	developer/macro/gnu-m4
       
    75 TMPL_ZONE_PKGS +=	developer/object-file
       
    76 TMPL_ZONE_PKGS +=	developer/sunstudio12u1
       
    77 TMPL_ZONE_PKGS +=	file/gnu-coreutils
       
    78 TMPL_ZONE_PKGS +=	package/pkg
       
    79 TMPL_ZONE_PKGS +=	shell/bash
       
    80 TMPL_ZONE_PKGS +=	system/extended-system-utilities
       
    81 TMPL_ZONE_PKGS +=	text/gawk
       
    82 TMPL_ZONE_PKGS +=	text/gnu-diffutils
       
    83 TMPL_ZONE_PKGS +=	text/gnu-grep
       
    84 TMPL_ZONE_PKGS +=	text/gnu-patch
       
    85 TMPL_ZONE_PKGS +=	text/gnu-sed
       
    86 #TMPL_ZONE_PKGS +=	developer/gcc-3
       
    87 #TMPL_ZONE_PKGS +=	developer/gnu-binutils
       
    88 #TMPL_ZONE_PKGS +=	redistributable
    67 
    89 
    68 template-build-zone:	$(BUILD_ZONE_SPACE)/$(TMPL_ZONE_NAME)/$(SYSIDCFG)
    90 template-build-zone:	$(BUILD_ZONE_SPACE)/$(TMPL_ZONE_NAME)/$(SYSIDCFG)
    69 build-zone-1:		$(BUILD_ZONE_SPACE)/build-zone-1/$(SYSIDCFG)
    91 build-zone-1:		$(BUILD_ZONE_SPACE)/build-zone-1/$(SYSIDCFG)
    70 build-zone-2:		$(BUILD_ZONE_SPACE)/build-zone-2/$(SYSIDCFG)
    92 build-zone-2:		$(BUILD_ZONE_SPACE)/build-zone-2/$(SYSIDCFG)
    71 build-zone-3:		$(BUILD_ZONE_SPACE)/build-zone-3/$(SYSIDCFG)
    93 build-zone-3:		$(BUILD_ZONE_SPACE)/build-zone-3/$(SYSIDCFG)
    76 build-zone-8:		$(BUILD_ZONE_SPACE)/build-zone-8/$(SYSIDCFG)
    98 build-zone-8:		$(BUILD_ZONE_SPACE)/build-zone-8/$(SYSIDCFG)
    77 build-zone-9:		$(BUILD_ZONE_SPACE)/build-zone-9/$(SYSIDCFG)
    99 build-zone-9:		$(BUILD_ZONE_SPACE)/build-zone-9/$(SYSIDCFG)
    78 
   100 
    79 # zone install options.  The template zone uses "install", while the build
   101 # zone install options.  The template zone uses "install", while the build
    80 # zones "clone" the template zone.
   102 # zones "clone" the template zone.
    81 ZI_OPT =	clone $(TMPL_ZONE_NAME)
   103 ZI_OPT =				clone $(TMPL_ZONE_NAME)
    82 $(BUILD_ZONE_SPACE)/$(TMPL_ZONE_NAME)/$(ZI_TAG): \
   104 $(BUILD_ZONE_SPACE)/$(TMPL_ZONE_NAME)/$(ZI_TAG): \
    83 	ZI_OPT = install $(TMPL_ZONE_PKGS:%=-e %)
   105 	ZI_OPT = 			install $(TMPL_ZONE_PKGS:%=-e %)
    84 
   106 
    85 $(BUILD_ZONE_SPACE):
   107 $(BUILD_ZONE_SPACE):
    86 	$(MKDIR) [email protected]
   108 	$(MKDIR) [email protected]
    87 
   109 
    88 # configure a zone
   110 # configure a zone