Subversion Repository

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

revision 27, Sun Oct 4 17:28:56 2009 UTC revision 31, Tue Oct 6 11:01:39 2009 UTC
# Line 2  Line 2 
2  # Makefile for CRUX PPC, based on Makefile for CRUX  # Makefile for CRUX PPC, based on Makefile for CRUX
3  # Copyright (c) 2003-2004 Per Liden <per@fukt.bth.se>  # Copyright (c) 2003-2004 Per Liden <per@fukt.bth.se>
4  # Copyright (c) 2004 Giulivo Navigante <giulivo@linuxmail.org>  # Copyright (c) 2004 Giulivo Navigante <giulivo@linuxmail.org>
5  # Copyright (c) 2005-2008 The CRUX PPC Team - http://cruxppc.sunsite.dk  # Copyright (c) 2005-2009 The CRUX PPC Team - http://cruxppc.sunsite.dk
6  #  #
7  # $Id: 14/01/2008 05:02:13 acrux *0.10* $  # CRUX PPC
8  # CRUX PPC 2.4  # 32bit Release
9  # release codename is: _Mafarka _le _futuriste  # release codename is: maggio 2009
10  #  #
11    
12    CRUXPPCVERSION    = 2.5
13  COLLECTIONS       = core opt xorg  COLLECTIONS       = core opt xorg
14  KERNEL_MIRROR     = ftp://ftp.eu.kernel.org  KERNEL_MIRROR     = ftp://ftp.eu.kernel.org
15  KERNEL_VERSION    = 2.6.27.6  KERNEL_VERSION    = 2.6.29.4
16  KERNEL_PATCHES    = cruxppc-logo.diff  KERNEL_PATCHES    = cruxppc-logo.diff linux-2.6.29.4.patch
17  FAKE_ROOT_DIR     = $(PWD)/tmp/fake_root  FAKE_ROOT_DIR     = $(PWD)/tmp/fake_root
18  ISO_ROOT_DIR      = $(PWD)/tmp/iso_root  ISO_ROOT_DIR      = $(PWD)/tmp/iso_root
19  ISO_FILENAME      = $(PWD)/crux-ppc-2.5.iso  SRCISO_ROOT_DIR   = $(PWD)/tmp/srciso_root
20  ISO_PACKAGES      = filesystem bash coreutils bzip2 e2fsprogs jfsutils xfsprogs \  ISO_FILENAME      = $(PWD)/crux-ppc-$(CRUXPPCVERSION).iso
21                      reiserfsprogs patch findutils glibc grep gzip kbd module-init-tools \  SRCISO_FILENAME   = $(PWD)/crux-ppc-$(CRUXPPCVERSION)-source.iso
22                      less yaboot gawk ncurses net-tools pkgutils procps readline sed shadow \  ISO_PACKAGES      = filesystem bash coreutils bzip2 e2fsprogs jfsutils \
23                      mktemp sysklogd sysvinit tar util-linux-ng vim which dialog nano mdadm \                      xfsprogs reiserfsprogs patch findutils glibc grep gzip \
24                      parted mac-fdisk hfsutils nvsetenv yaboot glib mc \                      kbd module-init-tools less gawk ncurses net-tools \
25                      pciutils libusb usbutils sysfsutils udev iproute2 memtester zlib                      pkgutils procps readline sed shadow sysklogd sysvinit \
26                        tar util-linux-ng vim which dialog nano mdadm parted \
27  PORTS_core        = $(shell /bin/ls -I README ports/core)                      mac-fdisk hfsutils nvsetenv yaboot glib mc pciutils \
28  PORTS_opt         = yaboot run-parts pbbuttonsd parted nvsetenv ncftp memtester mac-fdisk \                      libusb usbutils sysfsutils udev iproute2 memtester \
29                    rp-pppoe elinks eject b43-fwcutter nano dialog mdadm wireless-tools \                      zlib libpcre libgmp mkimage
30                    libpng glib mc glitz libjpeg hicolor-icon-theme atk wpa_supplicant \  PORTS_core        = $(shell /bin/ls -I README -I libstdc++-compat64 ports/core)
31                    freetype cairo libtiff fontconfig pango gtk libidl firefox \  PORTS_opt         = expat xulrunner yaboot run-parts pbbuttonsd parted nvsetenv \
32                    cdrkit sudo imlib2 fluxbox fetchmail procmail \                      ncftp mac-fdisk rp-pppoe elinks eject \
33                    libxml2 libxslt libdrm mutt xterm p5-xml-parser \                      nano dialog mdadm b43-fwcutter wireless-tools wpa_supplicant \
34                    python sqlite3 nspr dbus nss dbus-glib xulrunner parthenope \                      libpng glib mc glitz libjpeg hicolor-icon-theme atk \
35                    intltool libungif libattr libcap cmake                      freetype cairo libtiff fontconfig pango \
36                        gtk libidl firefox cdrkit imlib2 fluxbox fetchmail \
37                        procmail libxml2 libxslt libdrm mutt xterm p5-xml-parser \
38                        python sqlite3 nspr dbus nss dbus-glib intltool libungif \
39                        libattr libcap cmake parthenope mkimage alsa-lib fakeroot \
40                        lvm2
41  PORTS_xorg        = $(shell /bin/ls -I README ports/xorg)  PORTS_xorg        = $(shell /bin/ls -I README ports/xorg)
42    
   
43  ifeq ($(FORCE),yes)  ifeq ($(FORCE),yes)
44  PKGMK_FORCE=-f  PKGMK_FORCE=-f
45  else  else
# Line 54  help: Line 59  help:
59          @echo "Collections:"          @echo "Collections:"
60          @echo "  $(COLLECTIONS)"          @echo "  $(COLLECTIONS)"
61    
62  pull:  #pull:
63          @for i in $(COLLECTIONS); do echo Updating $$i; (cd ports/$$i; git pull git://cruxppc.crux.it/srv/git/ports/$$i.git 2.5); done  #       @for i in $(COLLECTIONS); do echo Updating $$i; (cd ports/$$i; git pull git://cruxppc.crux.it/cruxppc/git/ports/$$i.git $(CRUXPPCVERSION)); done
64    
65  check-root:  check-root:
66          @if [ "$$UID" != "0" ]; then \          @if [ "$$UID" != "0" ]; then \
# Line 64  check-root: Line 69  check-root:
69          fi          fi
70    
71  check-log:  check-log:
72          @grep "^=======> ERROR:"; \          @grep "> ERROR:"; \
73          if [ "$$?" = "0" ]; then \          if [ "$$?" = "0" ]; then \
74                  echo "(see log file for details)"; \                  echo "(see log file for details)"; \
75                  exit 1; \                  exit 1; \
# Line 80  kernel/linux-$(KERNEL_VERSION): kernel/l Line 85  kernel/linux-$(KERNEL_VERSION): kernel/l
85          for FILE in $(KERNEL_PATCHES); do \          for FILE in $(KERNEL_PATCHES); do \
86                  cd kernel/linux-$(KERNEL_VERSION) && patch -p1 < ../$$FILE && cd ../..; \                  cd kernel/linux-$(KERNEL_VERSION) && patch -p1 < ../$$FILE && cd ../..; \
87          done          done
         cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-64bit  
88          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Sam440ep          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Sam440ep
89          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Efika          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Efika
90            patch -p1 -d kernel/linux-$(KERNEL_VERSION)-Efika < kernel/linux-$(KERNEL_VERSION)-Efika.patch
91          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Pegasos2          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Pegasos2
92          patch -p1 -d kernel/linux-$(KERNEL_VERSION)-Pegasos2 < kernel/linux-$(KERNEL_VERSION)-Pegasos2.patch          patch -p1 -d kernel/linux-$(KERNEL_VERSION)-Pegasos2 < kernel/linux-$(KERNEL_VERSION)-Pegasos2.patch
93          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Chrp32          cp -a kernel/linux-$(KERNEL_VERSION) kernel/linux-$(KERNEL_VERSION)-Chrp32
# Line 91  kernel/linux-$(KERNEL_VERSION)/vmlinux: Line 96  kernel/linux-$(KERNEL_VERSION)/vmlinux:
96          make -C kernel/linux-$(KERNEL_VERSION) mrproper          make -C kernel/linux-$(KERNEL_VERSION) mrproper
97          cp -f kernel/linux-$(KERNEL_VERSION).config kernel/linux-$(KERNEL_VERSION)/.config          cp -f kernel/linux-$(KERNEL_VERSION).config kernel/linux-$(KERNEL_VERSION)/.config
98          make -C kernel/linux-$(KERNEL_VERSION) oldconfig          make -C kernel/linux-$(KERNEL_VERSION) oldconfig
99          make -j16 -C kernel/linux-$(KERNEL_VERSION) all          make -j8 -C kernel/linux-$(KERNEL_VERSION) all
100          touch kernel/linux-$(KERNEL_VERSION)/arch/powerpc/boot/zImage.pmac          touch kernel/linux-$(KERNEL_VERSION)/arch/powerpc/boot/zImage.pmac
101    
         make -C kernel/linux-$(KERNEL_VERSION)-64bit mrproper  
         cp -f kernel/linux-$(KERNEL_VERSION)-64bit.config kernel/linux-$(KERNEL_VERSION)-64bit/.config  
         make -C kernel/linux-$(KERNEL_VERSION)-64bit oldconfig  
         make -j16 -C kernel/linux-$(KERNEL_VERSION)-64bit all  
         touch kernel/linux-$(KERNEL_VERSION)-64bit/vmlinux  
   
102          make -C kernel/linux-$(KERNEL_VERSION)-Sam440ep mrproper          make -C kernel/linux-$(KERNEL_VERSION)-Sam440ep mrproper
103          cp -f kernel/linux-$(KERNEL_VERSION)-Sam440ep.config kernel/linux-$(KERNEL_VERSION)-Sam440ep/.config          cp -f kernel/linux-$(KERNEL_VERSION)-Sam440ep.config kernel/linux-$(KERNEL_VERSION)-Sam440ep/.config
104          make -C kernel/linux-$(KERNEL_VERSION)-Sam440ep oldconfig          make -C kernel/linux-$(KERNEL_VERSION)-Sam440ep oldconfig
105          make -j16 -C kernel/linux-$(KERNEL_VERSION)-Sam440ep all          make -j8 -C kernel/linux-$(KERNEL_VERSION)-Sam440ep all
106          touch kernel/linux-$(KERNEL_VERSION)-Sam440ep/vmlinux          touch kernel/linux-$(KERNEL_VERSION)-Sam440ep/arch/powerpc/boot/cuImage.sam440ep
107    
108          make -C kernel/linux-$(KERNEL_VERSION)-Efika mrproper          make -C kernel/linux-$(KERNEL_VERSION)-Efika mrproper
109          cp -f kernel/linux-$(KERNEL_VERSION)-Efika.config kernel/linux-$(KERNEL_VERSION)-Efika/.config          cp -f kernel/linux-$(KERNEL_VERSION)-Efika.config kernel/linux-$(KERNEL_VERSION)-Efika/.config
110          make -C kernel/linux-$(KERNEL_VERSION)-Efika oldconfig          make -C kernel/linux-$(KERNEL_VERSION)-Efika oldconfig
111          make -j16 -C kernel/linux-$(KERNEL_VERSION)-Efika all          make -j8 -C kernel/linux-$(KERNEL_VERSION)-Efika all
112          touch kernel/linux-$(KERNEL_VERSION)-Efika/arch/powerpc/boot/zImage.chrp          touch kernel/linux-$(KERNEL_VERSION)-Efika/arch/powerpc/boot/zImage.chrp
113          make -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 mrproper          make -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 mrproper
114          cp -f kernel/linux-$(KERNEL_VERSION)-Pegasos2.config kernel/linux-$(KERNEL_VERSION)-Pegasos2/.config          cp -f kernel/linux-$(KERNEL_VERSION)-Pegasos2.config kernel/linux-$(KERNEL_VERSION)-Pegasos2/.config
115          make -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 oldconfig          make -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 oldconfig
116          make -j16 -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 all          make -j8 -C kernel/linux-$(KERNEL_VERSION)-Pegasos2 all
117          touch kernel/linux-$(KERNEL_VERSION)-Pegasos2/arch/powerpc/boot/zImage.chrp          touch kernel/linux-$(KERNEL_VERSION)-Pegasos2/arch/powerpc/boot/zImage.chrp
118    
119          make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 mrproper          make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 mrproper
120          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
121          make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 oldconfig          make -C kernel/linux-$(KERNEL_VERSION)-Chrp32 oldconfig
122          make -j16 -C kernel/linux-$(KERNEL_VERSION)-Chrp32 all          make -j8 -C kernel/linux-$(KERNEL_VERSION)-Chrp32 all
123          touch kernel/linux-$(KERNEL_VERSION)-Chrp32/vmlinux          touch kernel/linux-$(KERNEL_VERSION)-Chrp32/vmlinux
124    
125  kernel: kernel/linux-$(KERNEL_VERSION)/vmlinux  kernel: kernel/linux-$(KERNEL_VERSION)/vmlinux
126    
127  kernel-clean:  kernel-clean:
128          if [ -e kernel/linux-$(KERNEL_VERSION) ]; then rm -rf kernel/linux-$(KERNEL_VERSION); fi          if [ -e kernel/linux-$(KERNEL_VERSION) ]; then rm -rf kernel/linux-$(KERNEL_VERSION); fi
         if [ -e kernel/linux-$(KERNEL_VERSION)-64bit ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-64bit; fi  
129          if [ -e kernel/linux-$(KERNEL_VERSION)-Sam440ep ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Sam440ep; fi          if [ -e kernel/linux-$(KERNEL_VERSION)-Sam440ep ]; then rm -rf kernel/linux-$(KERNEL_VERSION)-Sam440ep; fi
130          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
131          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
# Line 138  clean: kernel-clean Line 136  clean: kernel-clean
136  $(COLLECTIONS): check-root  $(COLLECTIONS): check-root
137          @for p in $(PORTS_$(@)); do \          @for p in $(PORTS_$(@)); do \
138                  echo "p: $$p"; \                  echo "p: $$p"; \
139                  (cd ports/$@/$$p && if [ -e pre-install ]; then sh pre-install; fi; pkgmk -d $(PKGMK_FORCE)); \                  (cd ports/$@/$$p; pkgmk -d $(PKGMK_FORCE)); \
140          done          done
141    
142  all: $(COLLECTIONS)  all: $(COLLECTIONS)
# Line 155  all-chroot: check-root Line 153  all-chroot: check-root
153          @echo "Installing packages"          @echo "Installing packages"
154          @mkdir -p $(FAKE_ROOT_DIR)/var/lib/pkg          @mkdir -p $(FAKE_ROOT_DIR)/var/lib/pkg
155          @touch $(FAKE_ROOT_DIR)/var/lib/pkg/db          @touch $(FAKE_ROOT_DIR)/var/lib/pkg/db
156          @for COLL in $(COLLECTIONS); do \          @#for COLL in $(COLLECTIONS); do \
157                  for PACKAGE in ports/$$COLL/*/*.pkg.tar.gz; do \          #       for PACKAGE in ports/$$COLL/*/*.pkg.tar.gz; do \
158                          echo " $$PACKAGE"; \          #               echo " $$PACKAGE"; \
159                          pkgadd -r $(FAKE_ROOT_DIR) $$PACKAGE; \          #               pkgadd -r $(FAKE_ROOT_DIR) $$PACKAGE; \
160                  done; \          #       done; \
161            #done
162            @for p in $(PORTS_core); do \
163                    echo " $$p"; \
164                    pkgadd -r $(FAKE_ROOT_DIR) ports/core/$$p/$$p*.pkg.tar.gz; \
165            done
166            @for p in $(PORTS_opt); do \
167                    echo " $$p"; \
168                    pkgadd -r $(FAKE_ROOT_DIR) ports/opt/$$p/$$p*.pkg.tar.gz; \
169            done
170            @for p in $(PORTS_xorg); do \
171                    echo " $$p"; \
172                    pkgadd -r $(FAKE_ROOT_DIR) ports/xorg/$$p/$$p*.pkg.tar.gz; \
173          done          done
174          @echo "Mounting /dev on $(FAKE_ROOT_DIR)/dev"          @echo "Mounting /dev on $(FAKE_ROOT_DIR)/dev"
175          @mount --bind /dev $(FAKE_ROOT_DIR)/dev          @mount --bind /dev $(FAKE_ROOT_DIR)/dev
# Line 185  all-chroot: check-root Line 195  all-chroot: check-root
195  bootstrap: check-root  bootstrap: check-root
196          @echo "Bootstrap started    (`date +'%F %T'`)"          @echo "Bootstrap started    (`date +'%F %T'`)"
197          @echo "- Stage 0            (`date +'%F %T'`)"          @echo "- Stage 0            (`date +'%F %T'`)"
198          @find ports/ -name ".footprint" -exec rm {} \;          @for i in $(PORTS_core) $(PORTS_opt) $(PORTS_xorg); do\
199                    rm -f ports/*/$$i/.footprint.powerpc;\
200            done
201          @$(MAKE) all &> log.stage0          @$(MAKE) all &> log.stage0
202          @$(MAKE) check-log < log.stage0          @$(MAKE) check-log < log.stage0
203          @echo "- Stage 1            (`date +'%F %T'`)"          @echo "- Stage 1            (`date +'%F %T'`)"
204          @find ports/ -name ".footprint" -exec rm {} \;          @for i in $(PORTS_core) $(PORTS_opt) $(PORTS_xorg); do\
205                    rm -f ports/*/$$i/.footprint.powerpc;\
206            done
207          @$(MAKE) all-chroot &> log.stage1          @$(MAKE) all-chroot &> log.stage1
208          @$(MAKE) check-log < log.stage1          @$(MAKE) check-log < log.stage1
209          @echo "- Stage 2            (`date +'%F %T'`)"          @echo "- Stage 2            (`date +'%F %T'`)"
# Line 205  releasenotes: Line 219  releasenotes:
219          @if [ -e doc/releasenotes.txt ]; then rm -f doc/releasenotes.txt; fi          @if [ -e doc/releasenotes.txt ]; then rm -f doc/releasenotes.txt; fi
220          @(cd doc; ../scripts/get_wiki_release_notes)          @(cd doc; ../scripts/get_wiki_release_notes)
221    
222  iso: check-root  iso: check-root handbook releasenotes dependencies-check
         #handbook releasenotes dependencies-check  
         @#kernel  
223          @echo "Creating ISO image ($(ISO_FILENAME))"          @echo "Creating ISO image ($(ISO_FILENAME))"
224          @if [ -e $(ISO_ROOT_DIR) ]; then rm -rf $(ISO_ROOT_DIR); fi          @if [ -e $(ISO_ROOT_DIR) ]; then rm -rf $(ISO_ROOT_DIR); fi
225          @mkdir -p $(ISO_ROOT_DIR)          @mkdir -p $(ISO_ROOT_DIR)
# Line 216  iso: check-root Line 228  iso: check-root
228                  tar -C $(ISO_ROOT_DIR) -xzpf ports/*/$$PACKAGE/$$PACKAGE\#*.pkg.tar.gz; \                  tar -C $(ISO_ROOT_DIR) -xzpf ports/*/$$PACKAGE/$$PACKAGE\#*.pkg.tar.gz; \
229          done          done
230          @echo "- Copying ISO specific files"          @echo "- Copying ISO specific files"
231          @mkdir -p $(ISO_ROOT_DIR)/etc $(ISO_ROOT_DIR)/ppc/{chrp,efika,mac,pegasos2,ppc32,ppc64,sam440ep}          @mkdir -p $(ISO_ROOT_DIR)/etc $(ISO_ROOT_DIR)/ppc/{chrp,efika,mac,pegasos2,ppc32,sam440ep}
232          @cp iso/ppc/bootinfo.txt $(ISO_ROOT_DIR)/ppc          @cp iso/ppc/bootinfo.txt $(ISO_ROOT_DIR)/ppc
233          @cp iso/ppc/chrp/yaboot $(ISO_ROOT_DIR)/ppc/chrp          @cp iso/ppc/chrp/{yaboot.chrp,yaboot.msg} $(ISO_ROOT_DIR)/ppc/chrp
234          @cp iso/ppc/mac/{ofboot.b,yaboot} $(ISO_ROOT_DIR)/ppc/mac          @cp iso/ppc/mac/{ofboot.b,yaboot} $(ISO_ROOT_DIR)/ppc/mac
235          @cp iso/ppc/ppc32/yaboot.conf $(ISO_ROOT_DIR)/ppc/ppc32          @cp iso/ppc/ppc32/{yaboot.conf,yaboot.msg} $(ISO_ROOT_DIR)/ppc/ppc32
         @cp iso/ppc/ppc64/yaboot.conf $(ISO_ROOT_DIR)/ppc/ppc64  
236          @cp iso/ppc/sam440ep/{Parthenope,menu.lst} $(ISO_ROOT_DIR)/ppc/sam440ep          @cp iso/ppc/sam440ep/{Parthenope,menu.lst} $(ISO_ROOT_DIR)/ppc/sam440ep
237          @cp iso/ppc/sam440ep/menu.lst $(ISO_ROOT_DIR)          @cp iso/ppc/sam440ep/menu.lst $(ISO_ROOT_DIR)
238          @cp iso/etc/{fstab,hosts,inittab,issue,motd,ld.so.conf,protocols,rc,rc.shutdown,rc.single,services,yaboot.conf} $(ISO_ROOT_DIR)/etc          @cp iso/etc/{fstab,hosts,inittab,issue,motd,ld.so.conf,protocols,rc,rc.shutdown,rc.single,services,yaboot.conf} $(ISO_ROOT_DIR)/etc
239          @echo "- Installing kernel"          @echo "- Installing kernel"
240          @cp kernel/linux-$(KERNEL_VERSION)/System.map $(ISO_ROOT_DIR)/ppc/ppc32          @cp kernel/linux-$(KERNEL_VERSION)/System.map $(ISO_ROOT_DIR)/ppc/ppc32
241          @cp kernel/linux-$(KERNEL_VERSION)/vmlinux $(ISO_ROOT_DIR)/ppc/ppc32          @cp kernel/linux-$(KERNEL_VERSION)/arch/powerpc/boot/zImage.pmac $(ISO_ROOT_DIR)/ppc/ppc32
         @cp kernel/linux-$(KERNEL_VERSION)-64bit/System.map $(ISO_ROOT_DIR)/ppc/ppc64  
         @cp kernel/linux-$(KERNEL_VERSION)-64bit/vmlinux $(ISO_ROOT_DIR)/ppc/ppc64  
         @cp kernel/linux-$(KERNEL_VERSION)-64bit/arch/powerpc/boot/zImage $(ISO_ROOT_DIR)/ppc/ppc64  
242          @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
243          @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
244          @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
245          @cp kernel/linux-$(KERNEL_VERSION)-Efika/arch/powerpc/boot/zImage.chrp $(ISO_ROOT_DIR)/ppc/efika          @cp kernel/linux-$(KERNEL_VERSION)-Efika/arch/powerpc/boot/zImage.chrp $(ISO_ROOT_DIR)/ppc/efika
246          @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
247          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2/arch/powerpc/boot/zImage.chrp $(ISO_ROOT_DIR)/ppc/pegasos2          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2/arch/powerpc/boot/zImage.chrp $(ISO_ROOT_DIR)/ppc/pegasos2
248          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32/System.map $(ISO_ROOT_DIR)/ppc/chrp/System.map          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32/System.map $(ISO_ROOT_DIR)/ppc/chrp
249          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32/vmlinux $(ISO_ROOT_DIR)/ppc/chrp          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32/vmlinux $(ISO_ROOT_DIR)/ppc/chrp
         @#cp kernel/linux-$(KERNEL_VERSION)-Apple64/System.map $(ISO_ROOT_DIR)/ppc/ppc64  
         @#cp kernel/linux-$(KERNEL_VERSION)-Apple64/vmlinux $(ISO_ROOT_DIR)/ppc/ppc64  
         @#@cp kernel/linux-$(KERNEL_VERSION)-pSeries/System.map $(ISO_ROOT_DIR)/boot/System.map-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
         @make -C kernel/linux-$(KERNEL_VERSION)-64bit INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-64bit  
252          @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
253          @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
254          @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
255          @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
         @#make -C kernel/linux-$(KERNEL_VERSION)-Apple64 INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-Apple64  
         @#@make -C kernel/linux-$(KERNEL_VERSION)-pSeries INSTALL_MOD_PATH=$(ISO_ROOT_DIR) modules_install &> modules_install.log-pSeries  
256          @echo "- Deleting superfluous files"          @echo "- Deleting superfluous files"
257          @cd $(ISO_ROOT_DIR) &&           rm -rf var opt home          @cd $(ISO_ROOT_DIR) &&           rm -rf var opt home
258          @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 264  iso: check-root Line 265  iso: check-root
265          @cd $(ISO_ROOT_DIR)/lib/modules/$(KERNEL_VERSION) && rm -f build          @cd $(ISO_ROOT_DIR)/lib/modules/$(KERNEL_VERSION) && rm -f build
266          @echo "- Creating symlinks"          @echo "- Creating symlinks"
267          @ln -sf /tmp/var $(ISO_ROOT_DIR)/var          @ln -sf /tmp/var $(ISO_ROOT_DIR)/var
268          @ln -sf /proc/mounts $(ISO_ROOT_DIR)/etc/mtab          @ln -sf /proc/mounts $(ISO_ROOT_DIR)/etc/mtab
269          @echo "- Updating library links and cache"          @echo "- Updating library links and cache"
270          @ldconfig -r $(ISO_ROOT_DIR)          @ldconfig -r $(ISO_ROOT_DIR)
271          @echo "- Copying CRUX PPC packages"          @echo "- Copying CRUX PPC packages"
# Line 277  iso: check-root Line 278  iso: check-root
278          @mkdir -p $(ISO_ROOT_DIR)/crux/kernel          @mkdir -p $(ISO_ROOT_DIR)/crux/kernel
279          @cp kernel/linux-$(KERNEL_VERSION).tar.bz2 $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION).tar.bz2 $(ISO_ROOT_DIR)/crux/kernel
280          @cp kernel/linux-$(KERNEL_VERSION).config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION).config $(ISO_ROOT_DIR)/crux/kernel
         @cp kernel/linux-$(KERNEL_VERSION)-64bit.config $(ISO_ROOT_DIR)/crux/kernel  
281          @cp kernel/linux-$(KERNEL_VERSION)-Sam440ep.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Sam440ep.config $(ISO_ROOT_DIR)/crux/kernel
282          @cp kernel/linux-$(KERNEL_VERSION)-Efika.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Efika.config $(ISO_ROOT_DIR)/crux/kernel
283            @cp kernel/linux-$(KERNEL_VERSION)-Efika.patch $(ISO_ROOT_DIR)/crux/kernel
284          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2.config $(ISO_ROOT_DIR)/crux/kernel
285          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2.patch $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Pegasos2.patch $(ISO_ROOT_DIR)/crux/kernel
286          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32.config $(ISO_ROOT_DIR)/crux/kernel          @cp kernel/linux-$(KERNEL_VERSION)-Chrp32.config $(ISO_ROOT_DIR)/crux/kernel
         @#cp kernel/linux-$(KERNEL_VERSION)-Apple64.config $(ISO_ROOT_DIR)/crux/kernel  
         @#@cp kernel/linux-$(KERNEL_VERSION)-pSeries.config $(ISO_ROOT_DIR)/crux/kernel  
287          @for FILE in $(KERNEL_PATCHES); do \          @for FILE in $(KERNEL_PATCHES); do \
288                  cp kernel/$$FILE $(ISO_ROOT_DIR)/crux/kernel; \                  cp kernel/$$FILE $(ISO_ROOT_DIR)/crux/kernel; \
289          done          done
290          @for COLL in $(COLLECTIONS); do \          @mkdir -p $(ISO_ROOT_DIR)/crux/core
291                  mkdir -p $(ISO_ROOT_DIR)/crux/$$COLL; \          @for PKG in $(PORTS_core); do \
292                  cp ports/$$COLL/*/*.pkg.tar.gz $(ISO_ROOT_DIR)/crux/$$COLL; \                  cp ports/core/$$PKG/*.pkg.tar.gz $(ISO_ROOT_DIR)/crux/core; \
293                  (cd ports/$$COLL; \          done
294                   for i in `find -name "pre-install"`; do \          @mkdir -p $(ISO_ROOT_DIR)/crux/opt
295                          cp $$i $(ISO_ROOT_DIR)/crux/$$COLL/`echo $$i | sed -e 's|\.\/||' -e 's|\/|\.|g'`; \          @for PKG in $(PORTS_opt); do \
296                   done; \                  cp ports/opt/$$PKG/*.pkg.tar.gz $(ISO_ROOT_DIR)/crux/opt; \
297                   for i in `find -name "post-install"`; do \          done
298                          cp $$i $(ISO_ROOT_DIR)/crux/$$COLL/`echo $$i | sed -e 's|\.\/||' -e 's|\/|\.|g'`; \          @mkdir -p $(ISO_ROOT_DIR)/crux/xorg
299                   done; \          @for PKG in $(PORTS_xorg); do \
300                  ); \                  cp ports/xorg/$$PKG/*.pkg.tar.gz $(ISO_ROOT_DIR)/crux/xorg; \
301          done          done
302          @echo "- Starting mkisofs"          @echo "- Starting mkisofs"
303          @if [ -f $(ISO_FILENAME) ]; then rm -f $(ISO_FILENAME); fi          @if [ -f $(ISO_FILENAME) ]; then rm -f $(ISO_FILENAME); fi
304          @mkisofs -r -V CRUX-PPC -U -chrp-boot -hfs -part -probe -no-desktop \          @genisoimage -r -V CRUX-PPC -U -chrp-boot -hfs -part -probe -no-desktop \
305                  -hfs-bless $(ISO_ROOT_DIR)/ppc/mac -map iso/boot/map.hfs \                  -hfs-bless $(ISO_ROOT_DIR)/ppc/mac -map iso/boot/map.hfs \
306                  -b ppc/sam440ep/Parthenope -no-emul-boot \                  -b ppc/sam440ep/Parthenope -no-emul-boot \
307                  -hide-rr-moved -o $(ISO_FILENAME) $(ISO_ROOT_DIR)                  -hide-rr-moved -o $(ISO_FILENAME) $(ISO_ROOT_DIR)
# Line 314  dependencies-check: Line 313  dependencies-check:
313          @if [ -e iso/setup.dependencies ]; then rm iso/setup.dependencies; fi          @if [ -e iso/setup.dependencies ]; then rm iso/setup.dependencies; fi
314          @make iso/setup.dependencies          @make iso/setup.dependencies
315          @for i in `cat iso/setup.dependencies | sed -e 's|[^:]*:\ ||' -e 's|\ |\n|g' | sort | uniq`; do \          @for i in `cat iso/setup.dependencies | sed -e 's|[^:]*:\ ||' -e 's|\ |\n|g' | sort | uniq`; do \
316                  prt-get search $$i > /dev/null ; \                  ilenia -s $$i > /dev/null ; \
317                  if [ "$$?" != "0" ]; then \                  if [ "$$?" != "0" ]; then \
318                          echo "Missing dependence $$i" ;\                          echo "Missing dependence $$i" ;\
319                          exit 1 ;\                          exit 1 ;\
320                  fi ; \                  fi ; \
321          done          done
# Line 324  dependencies-check: Line 323  dependencies-check:
323  iso/setup.dependencies:  iso/setup.dependencies:
324          @for PORT in $(foreach c,$(COLLECTIONS),$(PORTS_$(c))); do \          @for PORT in $(foreach c,$(COLLECTIONS),$(PORTS_$(c))); do \
325                  echo -n $$PORT": "; \                  echo -n $$PORT": "; \
326                  prt-get quickdep $$PORT; \                  ilenia -D $$PORT | awk '{ print $$1 }' | xargs; \
327          done > $@          done > $@
328    
329    source-iso:
330            @echo "Creating ISO image with sources ($(SRCISO_FILENAME))"
331            @rm -rf $(SRCISO_ROOT_DIR)
332            @mkdir -p $(SRCISO_ROOT_DIR)/{ports,kernel,misc}
333            @echo "- Copying ports"
334            @for PORT in $(PORTS_core) $(PORTS_opt) $(PORTS_xorg); do \
335                    find ports -mindepth 2 -maxdepth 2 -name $$PORT -type d -exec cp -r {} $(SRCISO_ROOT_DIR)/ports \; ; \
336                    rm -f $(SRCISO_ROOT_DIR)/ports/$$PORT/{*~,build.log,.footprint,.md5sum,*.pkg.tar.gz}; \
337            done
338            @echo "- Copying kernel and patches"
339            @cp kernel/linux-$(KERNEL_VERSION).tar.bz2  $(SRCISO_ROOT_DIR)/kernel
340            @for PATCH in $(KERNEL_PATCHES); do cp kernel/$$PATCH $(SRCISO_ROOT_DIR)/kernel; done
341            @echo "- Creating README"
342            @echo "- Starting genisoimage"
343            @genisoimage -R -l -J -V CRUX-PPC-$(CRUXVERSION) -A "CRUX PPC" -o $(SRCISO_FILENAME) $(SRCISO_ROOT_DIR)
344            @md5sum `basename $(SRCISO_FILENAME)` > `basename $(SRCISO_FILENAME) .iso`.md5
345    
346  # End of file  # End of file

Legend:
Removed from v.27  
changed lines
  Added in v.31