Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3, Sun Oct 4 17:28:47 2009 UTC revision 23, Sun Oct 4 17:28:54 2009 UTC
# Line 11  Line 11 
11    
12  COLLECTIONS       = core opt xorg  COLLECTIONS       = core opt xorg
13  KERNEL_MIRROR     = ftp://ftp.eu.kernel.org  KERNEL_MIRROR     = ftp://ftp.eu.kernel.org
14  KERNEL_VERSION    = 2.6.26.5  KERNEL_VERSION    = 2.6.27.5
15  KERNEL_PATCHES    = cruxppc-logo.diff  KERNEL_PATCHES    = cruxppc-logo.diff
16  FAKE_ROOT_DIR     = $(PWD)/tmp/fake_root  FAKE_ROOT_DIR     = $(PWD)/tmp/fake_root
17  ISO_ROOT_DIR      = $(PWD)/tmp/iso_root  ISO_ROOT_DIR      = $(PWD)/tmp/iso_root
18  ISO_FILENAME      = $(PWD)/crux-ppc-2.4rc2.iso  ISO_FILENAME      = $(PWD)/crux-ppc-2.4.iso
19  ISO_PACKAGES      = filesystem bash coreutils bzip2 e2fsprogs jfsutils xfsprogs \  ISO_PACKAGES      = filesystem bash coreutils bzip2 e2fsprogs jfsutils xfsprogs \
20                      reiserfsprogs patch findutils glibc grep gzip kbd module-init-tools \                      reiserfsprogs patch findutils glibc grep gzip kbd module-init-tools \
21                      less yaboot gawk ncurses net-tools pkgutils procps readline sed shadow \                      less yaboot gawk ncurses net-tools pkgutils procps readline sed shadow \
22                      mktemp sysklogd sysvinit tar util-linux-ng vim which dialog nano mdadm \                      mktemp sysklogd sysvinit tar util-linux-ng vim which dialog nano mdadm \
23                      parted mac-fdisk hfsutils nvsetenv yaboot glib mc \                      parted mac-fdisk hfsutils nvsetenv yaboot glib mc \
24                      pciutils libusb usbutils hotplug sysfsutils udev iproute2 memtester zlib                      pciutils libusb usbutils sysfsutils udev iproute2 memtester zlib
25    
26  PORTS_core      = $(shell /bin/ls -I README ports/core)  PORTS_core        = $(shell /bin/ls -I README ports/core)
27  PORTS_opt       = yaboot run-parts pbbuttonsd parted nvsetenv ncftp memtester mac-fdisk \  PORTS_opt         = yaboot run-parts pbbuttonsd parted nvsetenv ncftp memtester mac-fdisk \
28                    rp-pppoe elinks eject b43-fwcutter nano dialog mdadm wireless-tools \                    rp-pppoe elinks eject b43-fwcutter nano dialog mdadm wireless-tools \
29                    libpng glib mc glitz libjpeg hicolor-icon-theme atk wpa_supplicant \                    libpng glib mc glitz libjpeg hicolor-icon-theme atk wpa_supplicant \
30                    freetype cairo libtiff fontconfig pango gtk libidl firefox \                    freetype cairo libtiff fontconfig pango gtk libidl firefox \
31                    cdrtools sudo imlib2 fluxbox fetchmail procmail \                    cdrtools sudo imlib2 fluxbox fetchmail procmail \
32                    libxml2 libxslt libdrm mutt xterm p5-xml-parser \                    libxml2 libxslt libdrm mutt xterm p5-xml-parser \
33                    python sqlite3 nspr dbus nss dbus-glib xulrunner parthenope                    python sqlite3 nspr dbus nss dbus-glib xulrunner parthenope \
34                      intltool libungif
35  PORTS_xorg        = $(shell /bin/ls -I README ports/xorg)  PORTS_xorg        = $(shell /bin/ls -I README ports/xorg)
36    
37    
38  ifeq ($(FORCE),yes)  ifeq ($(FORCE),yes)
39  PKGMK_FORCE=-f  PKGMK_FORCE=-f
40  else  else
# Line 52  help: Line 54  help:
54          @echo "Collections:"          @echo "Collections:"
55          @echo "  $(COLLECTIONS)"          @echo "  $(COLLECTIONS)"
56    
57    pull:
58            @for i in $(COLLECTIONS); do echo Updating $$i; (cd ports/$$i; git pull git://cruxppc.crux.it/srv/git/ports/$$i.git master); done
59    
60  check-root:  check-root:
61          @if [ "$$UID" != "0" ]; then \          @if [ "$$UID" != "0" ]; then \
62                  echo "You need to be root to do this."; \                  echo "You need to be root to do this."; \
# Line 77  kernel/linux-$(KERNEL_VERSION): kernel/l Line 82  kernel/linux-$(KERNEL_VERSION): kernel/l
82          done          done
83          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-64bit          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-64bit
84          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Sam440ep          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Sam440ep
85          patch -p1 -d kernel/linux-$(KERNEL_VERSION)-Sam440ep < kernel/linux-$(KERNEL_VERSION)-Sam440ep.patch          #patch -p1 -d kernel/linux-$(KERNEL_VERSION)-Sam440ep < kernel/linux-$(KERNEL_VERSION)-Sam440ep.patch
86          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Efika          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Efika
87          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Pegasos2          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Pegasos2
88          #cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Chrp32          patch -p1 -d kernel/linux-$(KERNEL_VERSION)-Pegasos2 < kernel/linux-$(KERNEL_VERSION)-Pegasos2.patch
89            cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Chrp32
90          #cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Apple64          #cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Apple64
91          #cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-pSeries          #cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-pSeries
92    
# Line 91  kernel/linux-$(KERNEL_VERSION)/vmlinux: Line 97  kernel/linux-$(KERNEL_VERSION)/vmlinux:
97          make -j16 -C kernel/linux-$(KERNEL_VERSION) all          make -j16 -C kernel/linux-$(KERNEL_VERSION) all
98          touch kernel/linux-$(KERNEL_VERSION)/arch/powerpc/boot/zImage.pmac          touch kernel/linux-$(KERNEL_VERSION)/arch/powerpc/boot/zImage.pmac
99    
100          CC="gcc -m64" make -C kernel/linux-$(KERNEL_VERSION)-64bit mrproper          make -C kernel/linux-$(KERNEL_VERSION)-64bit mrproper
101          cp -f kernel/linux-$(KERNEL_VERSION)-64bit.config kernel/linux-$(KERNEL_VERSION)-64bit/.config          cp -f kernel/linux-$(KERNEL_VERSION)-64bit.config kernel/linux-$(KERNEL_VERSION)-64bit/.config
102          CC="gcc -m64" make -C kernel/linux-$(KERNEL_VERSION)-64bit oldconfig          make -C kernel/linux-$(KERNEL_VERSION)-64bit oldconfig
103          CC="gcc -m64" make -j16 -C kernel/linux-$(KERNEL_VERSION)-64bit all          make -j16 -C kernel/linux-$(KERNEL_VERSION)-64bit all
104          touch kernel/linux-$(KERNEL_VERSION)-64bit/vmlinux          touch kernel/linux-$(KERNEL_VERSION)-64bit/vmlinux
105    
106          make -C kernel/linux-$(KERNEL_VERSION)-Sam440ep mrproper          make -C kernel/linux-$(KERNEL_VERSION)-Sam440ep mrproper
# Line 114  kernel/linux-$(KERNEL_VERSION)/vmlinux: Line 120  kernel/linux-$(KERNEL_VERSION)/vmlinux:
120          make -j16 -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 all          make -j16 -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 all
121          touch kernel/linux-$(KERNEL_VERSION)-Pegasos2/arch/powerpc/boot/zImage.chrp          touch kernel/linux-$(KERNEL_VERSION)-Pegasos2/arch/powerpc/boot/zImage.chrp
122    
123          #make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 mrproper          make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 mrproper
124          #cp -f kernel/linux-$(KERNEL_VERSION)-Chrp32.config kernel/linux-$(KERNEL_VERSION)-Chrp32/.config          cp -f kernel/linux-$(KERNEL_VERSION)-Chrp32.config kernel/linux-$(KERNEL_VERSION)-Chrp32/.config
125          #make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 oldconfig          make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 oldconfig
126          #make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 all          make -j16 -C kernel/linux-$(KERNEL_VERSION)-Chrp32 all
127          #touch kernel/linux-$(KERNEL_VERSION)-Chrp32/vmlinux          touch kernel/linux-$(KERNEL_VERSION)-Chrp32/vmlinux
   
         #PATH=$(PATH):/usr/ppc64-unknown-linux-gnu/bin/ make -C kernel/linux-$(KERNEL_VERSION)-Apple64 mrproper ARCH=powerpc CROSS_COMPILE=ppc64-unknown-linux-gnu-  
         #cp -f kernel/linux-$(KERNEL_VERSION)-Apple64.config kernel/linux-$(KERNEL_VERSION)-Apple64/.config  
         #PATH=$(PATH):/usr/ppc64-unknown-linux-gnu/bin/ make -C kernel/linux-$(KERNEL_VERSION)-Apple64 oldconfig ARCH=powerpc CROSS_COMPILE=ppc64-unknown-linux-gnu-  
         #PATH=$(PATH):/usr/ppc64-unknown-linux-gnu/bin/ make -C kernel/linux-$(KERNEL_VERSION)-Apple64 all ARCH=powerpc CROSS_COMPILE=ppc64-unknown-linux-gnu-  
         #touch kernel/linux-$(KERNEL_VERSION)-Apple64/vmlinux  
   
         #PATH=$(PATH):/usr/ppc64-unknown-linux-gnu/bin/ make -C kernel/linux-$(KERNEL_VERSION)-pSeries mrproper ARCH=powerpc CROSS_COMPILE=ppc64-unknown-linux-gnu-  
         #cp -f kernel/linux-$(KERNEL_VERSION)-pSeries.config kernel/linux-$(KERNEL_VERSION)-pSeries/.config  
         #PATH=$(PATH):/usr/ppc64-unknown-linux-gnu/bin/ make -C kernel/linux-$(KERNEL_VERSION)-pSeries oldconfig ARCH=powerpc CROSS_COMPILE=ppc64-unknown-linux-gnu-  
         #PATH=$(PATH):/usr/ppc64-unknown-linux-gnu/bin/ make -C kernel/linux-$(KERNEL_VERSION)-pSeries all ARCH=powerpc CROSS_COMPILE=ppc64-unknown-linux-gnu-  
         #touch kernel/linux-$(KERNEL_VERSION)-pSeries/vmlinux  
128    
129  kernel: kernel/linux-$(KERNEL_VERSION)/vmlinux  kernel: kernel/linux-$(KERNEL_VERSION)/vmlinux
130    
# Line 141  kernel-clean: Line 135  kernel-clean:
135          if [ -e kernel/linux-$(KERNEL_VERSION)-Efika ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Efika; fi          if [ -e kernel/linux-$(KERNEL_VERSION)-Efika ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Efika; fi
136          if [ -e kernel/linux-$(KERNEL_VERSION)-Pegasos2 ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Pegasos2; fi          if [ -e kernel/linux-$(KERNEL_VERSION)-Pegasos2 ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Pegasos2; fi
137          #if [ -e kernel/linux-$(KERNEL_VERSION)-Apple64 ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Apple64; fi          #if [ -e kernel/linux-$(KERNEL_VERSION)-Apple64 ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Apple64; fi
138          #if [ -e kernel/linux-$(KERNEL_VERSION)-Chrp32 ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Chrp32; fi          if [ -e kernel/linux-$(KERNEL_VERSION)-Chrp32 ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Chrp32; fi
139          #if [ -e kernel/linux-$(KERNEL_VERSION)-pSeries ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-pSeries; fi          #if [ -e kernel/linux-$(KERNEL_VERSION)-pSeries ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-pSeries; fi
140    
141  clean: kernel-clean  clean: kernel-clean
# Line 196  all-chroot: check-root Line 190  all-chroot: check-root
190  bootstrap: check-root  bootstrap: check-root
191          @echo "Bootstrap started    (`date +'%F %T'`)"          @echo "Bootstrap started    (`date +'%F %T'`)"
192          @echo "- Stage 0            (`date +'%F %T'`)"          @echo "- Stage 0            (`date +'%F %T'`)"
193            @find ports/ -name ".footprint" -exec rm {} \;
194          @$(MAKE) all &> log.stage0          @$(MAKE) all &> log.stage0
195          @$(MAKE) check-log < log.stage0          @$(MAKE) check-log < log.stage0
196          @echo "- Stage 1            (`date +'%F %T'`)"          @echo "- Stage 1            (`date +'%F %T'`)"
197          @$(MAKE) all-chroot1 &> log.stage1          @find ports/ -name ".footprint" -exec rm {} \;
198            @$(MAKE) all-chroot &> log.stage1
199          @$(MAKE) check-log < log.stage1          @$(MAKE) check-log < log.stage1
200          @echo "- Stage 2            (`date +'%F %T'`)"          @echo "- Stage 2            (`date +'%F %T'`)"
201          @$(MAKE) all-chroot &> log.stage2          @$(MAKE) all-chroot &> log.stage2
202          @$(MAKE) check-log < log.stage2          @$(MAKE) check-log < log.stage2
203          @echo "Bootstrap completed  (`date +'%F %T'`)"          @echo "Bootstrap completed  (`date +'%F %T'`)"
204    
205  iso: check-root  handbook:
206          #kernel          @if [ -e doc/handbook.txt ]; then rm -f doc/handbook.txt; fi
207            @(cd doc; ../scripts/get_wiki_handbook)
208    
209    releasenotes:
210            @if [ -e doc/releasenotes.txt ]; then rm -f doc/releasenotes.txt; fi
211            @(cd doc; ../scripts/get_wiki_release_notes)
212    
213    iso: check-root handbook releasenotes dependencies-check
214            @#kernel
215          @echo "Creating ISO image ($(ISO_FILENAME))"          @echo "Creating ISO image ($(ISO_FILENAME))"
216          @if [ -e $(ISO_ROOT_DIR) ]; then rm -rf $(ISO_ROOT_DIR); fi          @if [ -e $(ISO_ROOT_DIR) ]; then rm -rf $(ISO_ROOT_DIR); fi
217          @mkdir -p $(ISO_ROOT_DIR)          @mkdir -p $(ISO_ROOT_DIR)
# Line 230  iso: check-root Line 234  iso: check-root
234          @cp kernel/linux-$(KERNEL_VERSION)/vmlinux $(ISO_ROOT_DIR)/ppc/ppc32          @cp kernel/linux-$(KERNEL_VERSION)/vmlinux $(ISO_ROOT_DIR)/ppc/ppc32
235          @cp kernel/linux-$(KERNEL_VERSION)-64bit/System.map $(ISO_ROOT_DIR)/ppc/ppc64          @cp kernel/linux-$(KERNEL_VERSION)-64bit/System.map $(ISO_ROOT_DIR)/ppc/ppc64
236          @cp kernel/linux-$(KERNEL_VERSION)-64bit/vmlinux $(ISO_ROOT_DIR)/ppc/ppc64          @cp kernel/linux-$(KERNEL_VERSION)-64bit/vmlinux $(ISO_ROOT_DIR)/ppc/ppc64
237            @cp kernel/linux-$(KERNEL_VERSION)-64bit/arch/powerpc/boot/zImage $(ISO_ROOT_DIR)/ppc/ppc64
238          @cp kernel/linux-$(KERNEL_VERSION)-Sam440ep/System.map $(ISO_ROOT_DIR)/ppc/sam440ep          @cp kernel/linux-$(KERNEL_VERSION)-Sam440ep/System.map $(ISO_ROOT_DIR)/ppc/sam440ep
239          @cp kernel/linux-$(KERNEL_VERSION)-Sam440ep/arch/powerpc/boot/cuImage.sam440ep $(ISO_ROOT_DIR)/ppc/sam440ep/uImage          @cp kernel/linux-$(KERNEL_VERSION)-Sam440ep/arch/powerpc/boot/cuImage.sam440ep $(ISO_ROOT_DIR)/ppc/sam440ep/uImage
240          @cp kernel/linux-$(KERNEL_VERSION)-Efika/System.map $(ISO_ROOT_DIR)/ppc/efika          @cp kernel/linux-$(KERNEL_VERSION)-Efika/System.map $(ISO_ROOT_DIR)/ppc/efika
241          @cp kernel/linux-$(KERNEL_VERSION)-Efika/vmlinux $(ISO_ROOT_DIR)/ppc/efika          @cp kernel/linux-$(KERNEL_VERSION)-Efika/arch/powerpc/boot/zImage.chrp $(ISO_ROOT_DIR)/ppc/efika
242          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2/System.map $(ISO_ROOT_DIR)/ppc/pegasos2          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2/System.map $(ISO_ROOT_DIR)/ppc/pegasos2
243          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2/vmlinux $(ISO_ROOT_DIR)/ppc/pegasos2          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2/arch/powerpc/boot/zImage.chrp $(ISO_ROOT_DIR)/ppc/pegasos2
244          #@cp kernel/linux-$(KERNEL_VERSION)-Chrp32/System.map $(ISO_ROOT_DIR)/boot/System.map-Chrp32          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32/System.map $(ISO_ROOT_DIR)/ppc/chrp/System.map
245          #@cp kernel/linux-$(KERNEL_VERSION)-Chrp32/vmlinux $(ISO_ROOT_DIR)/boot/vmlinux-Chrp32          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32/vmlinux $(ISO_ROOT_DIR)/ppc/chrp
246          #@cp kernel/linux-$(KERNEL_VERSION)-Apple64/System.map $(ISO_ROOT_DIR)/boot/System.map-Apple64          @#cp kernel/linux-$(KERNEL_VERSION)-Apple64/System.map $(ISO_ROOT_DIR)/ppc/ppc64
247          #@cp kernel/linux-$(KERNEL_VERSION)-Apple64/vmlinux $(ISO_ROOT_DIR)/boot/vmlinux-Apple64          @#cp kernel/linux-$(KERNEL_VERSION)-Apple64/vmlinux $(ISO_ROOT_DIR)/ppc/ppc64
248          #@cp kernel/linux-$(KERNEL_VERSION)-pSeries/System.map $(ISO_ROOT_DIR)/boot/System.map-pSeries          @#@cp kernel/linux-$(KERNEL_VERSION)-pSeries/System.map $(ISO_ROOT_DIR)/boot/System.map-pSeries
249          #@cp kernel/linux-$(KERNEL_VERSION)-pSeries/vmlinux $(ISO_ROOT_DIR)/boot/vmlinux-pSeries          @#@cp kernel/linux-$(KERNEL_VERSION)-pSeries/vmlinux $(ISO_ROOT_DIR)/boot/vmlinux-pSeries
250          @echo "- Installing kernel modules (see modules_install.log)"          @echo "- Installing kernel modules (see modules_install.log)"
251          @make -C kernel/linux-$(KERNEL_VERSION) INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log          @make -C kernel/linux-$(KERNEL_VERSION) INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log
252          @make -C kernel/linux-$(KERNEL_VERSION)-64bit INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-64bit          @make -C kernel/linux-$(KERNEL_VERSION)-64bit INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-64bit
253          @make -C kernel/linux-$(KERNEL_VERSION)-Sam440ep INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Sam440ep          @make -C kernel/linux-$(KERNEL_VERSION)-Sam440ep INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Sam440ep
254          @make -C kernel/linux-$(KERNEL_VERSION)-Efika INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Efika          @make -C kernel/linux-$(KERNEL_VERSION)-Efika INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Efika
255          @make -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Pegasos2          @make -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Pegasos2
256          #@make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Chrp32          @make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Chrp32
257          #@make -C kernel/linux-$(KERNEL_VERSION)-pSeries INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-pSeries          @#make -C kernel/linux-$(KERNEL_VERSION)-Apple64 INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Apple64
258            @#@make -C kernel/linux-$(KERNEL_VERSION)-pSeries INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-pSeries
259          @echo "- Deleting superfluous files"          @echo "- Deleting superfluous files"
260          @cd $(ISO_ROOT_DIR) &&           rm -rf var opt home          @cd $(ISO_ROOT_DIR) &&           rm -rf var opt home
261          @cd $(ISO_ROOT_DIR)/usr &&       rm -rf man include lib/*.a lib/*.o lib/gconv lib/locale src          @cd $(ISO_ROOT_DIR)/usr &&       rm -rf man include lib/*.a lib/*.o lib/gconv lib/locale src
# Line 257  iso: check-root Line 263  iso: check-root
263          @cd $(ISO_ROOT_DIR)/usr/share && rm -rf et ss vim i18n zoneinfo          @cd $(ISO_ROOT_DIR)/usr/share && rm -rf et ss vim i18n zoneinfo
264          @cd $(ISO_ROOT_DIR)/usr/bin &&   rm cal locale localedef rpcgen compile_et mk_cmds          @cd $(ISO_ROOT_DIR)/usr/bin &&   rm cal locale localedef rpcgen compile_et mk_cmds
265          @cd $(ISO_ROOT_DIR)/usr/sbin &&  rm group{add,del,mod} user{add,del,mod} grpck pwck iconvconfig rpcinfo zic zdump          @cd $(ISO_ROOT_DIR)/usr/sbin &&  rm group{add,del,mod} user{add,del,mod} grpck pwck iconvconfig rpcinfo zic zdump
266          @cd $(ISO_ROOT_DIR)/etc &&       rm -rf rc.d cron {resolv,yaboot,sysctl,pkgadd,pkgmk}.conf securetty          @cd $(ISO_ROOT_DIR)/etc &&       rm -rf rc.d cron {resolv,sysctl,pkgadd,pkgmk}.conf securetty
267          @cd $(ISO_ROOT_DIR)/usr/lib &&   rm -rf pkgconfig/*          @cd $(ISO_ROOT_DIR)/usr/lib &&   rm -rf pkgconfig/*
268          @cd $(ISO_ROOT_DIR)/lib/modules/$(KERNEL_VERSION) && rm -f build          @cd $(ISO_ROOT_DIR)/lib/modules/$(KERNEL_VERSION) && rm -f build
269          @echo "- Creating symlinks"          @echo "- Creating symlinks"
# Line 267  iso: check-root Line 273  iso: check-root
273          @ldconfig -r $(ISO_ROOT_DIR)          @ldconfig -r $(ISO_ROOT_DIR)
274          @echo "- Copying CRUX PPC packages"          @echo "- Copying CRUX PPC packages"
275          @mkdir -p $(ISO_ROOT_DIR)/crux          @mkdir -p $(ISO_ROOT_DIR)/crux
276          @cp doc/handbook/handbook.txt $(ISO_ROOT_DIR)/crux          @cp doc/handbook.txt $(ISO_ROOT_DIR)/crux
277            @cp doc/releasenotes.txt $(ISO_ROOT_DIR)/crux
278          @cp iso/setup.dependencies $(ISO_ROOT_DIR)/crux          @cp iso/setup.dependencies $(ISO_ROOT_DIR)/crux
279          @cp doc/gpl.txt $(ISO_ROOT_DIR)/crux          @cp doc/gpl.txt $(ISO_ROOT_DIR)/crux
280          @cp iso/bin/{setup,setup-helper,setup-chroot,serial_console} $(ISO_ROOT_DIR)/usr/bin          @cp iso/bin/{setup,setup-helper,setup-chroot,serial_console} $(ISO_ROOT_DIR)/usr/bin
# Line 278  iso: check-root Line 285  iso: check-root
285          @cp kernel/linux-$(KERNEL_VERSION)-Sam440ep.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Sam440ep.config $(ISO_ROOT_DIR)/crux/kernel
286          @cp kernel/linux-$(KERNEL_VERSION)-Efika.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Efika.config $(ISO_ROOT_DIR)/crux/kernel
287          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2.config $(ISO_ROOT_DIR)/crux/kernel
288          #@cp kernel/linux-$(KERNEL_VERSION)-Chrp32.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2.patch $(ISO_ROOT_DIR)/crux/kernel
289          #@cp kernel/linux-$(KERNEL_VERSION)-pSeries.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32.config $(ISO_ROOT_DIR)/crux/kernel
290            @#cp kernel/linux-$(KERNEL_VERSION)-Apple64.config $(ISO_ROOT_DIR)/crux/kernel
291            @#@cp kernel/linux-$(KERNEL_VERSION)-pSeries.config $(ISO_ROOT_DIR)/crux/kernel
292          @for FILE in $(KERNEL_PATCHES); do \          @for FILE in $(KERNEL_PATCHES); do \
293                  cp kernel/$$FILE $(ISO_ROOT_DIR)/crux/kernel; \                  cp kernel/$$FILE $(ISO_ROOT_DIR)/crux/kernel; \
294          done          done
# Line 305  iso: check-root Line 314  iso: check-root
314          @md5sum $(ISO_FILENAME) > $(ISO_FILENAME).md5          @md5sum $(ISO_FILENAME) > $(ISO_FILENAME).md5
315          @echo "Done"          @echo "Done"
316    
317    dependencies-check:
318            @if [ -e iso/setup.dependencies ]; then rm iso/setup.dependencies; fi
319            @make iso/setup.dependencies
320            @for i in `cat iso/setup.dependencies | sed -e 's|[^:]*:\ ||' -e 's|\ |\n|g' | sort | uniq`; do \
321                    prt-get search $$i > /dev/null ; \
322                    if [ "$$?" != "0" ]; then \
323                            echo "Missing dependence $$i" ;\
324                            exit 1 ;\
325                    fi ; \
326            done
327    
328  iso/setup.dependencies:  iso/setup.dependencies:
329          @for PORT in $(foreach c,$(COLLECTIONS),$(PORTS_$(c))); do \          @for PORT in $(foreach c,$(COLLECTIONS),$(PORTS_$(c))); do \
330                  echo -n $$PORT": "; \                  echo -n $$PORT": "; \

Legend:
Removed from v.3  
changed lines
  Added in v.23