1
0
mirror of https://github.com/fspc/gbootroot.git synced 2025-02-23 09:03:23 -05:00

Have the whole uml kernel, modules, tools, and genext2fs properly

compiling now that a new binutils was installed.  Now need to make the
helper_root_fs and Initrd with the uml kernel which was just made and
should be just about there.  This will all be done as non-root.

Initrd.gz stuff is now set-up.  This is nice.
This commit is contained in:
freesource 2002-12-16 03:46:53 +00:00
parent e216305685
commit 23c5e6f602
4 changed files with 44 additions and 11 deletions

View File

@ -27,6 +27,7 @@ install:
chmod 0444 yard/templates/*.yard chmod 0444 yard/templates/*.yard
cp -fa yard/templates/Example* /usr/share/gbootroot/yard/templates cp -fa yard/templates/Example* /usr/share/gbootroot/yard/templates
cp -fa yard/templates/Helper.yard /usr/share/gbootroot/yard/templates cp -fa yard/templates/Helper.yard /usr/share/gbootroot/yard/templates
cp -fa yard/templates/Helper.yard /usr/share/gbootroot/yard/templates
install -d /usr/share/gbootroot/genext2fs install -d /usr/share/gbootroot/genext2fs
cp -fa genext2fs/genext2fs.c /usr/share/gbootroot/genext2fs cp -fa genext2fs/genext2fs.c /usr/share/gbootroot/genext2fs
cp -fa genext2fs/Makefile /usr/share/gbootroot/genext2fs cp -fa genext2fs/Makefile /usr/share/gbootroot/genext2fs

View File

@ -90,6 +90,8 @@ kernel:
fi; fi;
cp $(KERNEL_DIR)/.config $(KCONFIG) cp $(KERNEL_DIR)/.config $(KCONFIG)
modules: modules:
cd linux-$(VERSION) ; \ cd linux-$(VERSION) ; \
mkdir ../modules-2.4 ; \ mkdir ../modules-2.4 ; \
@ -112,19 +114,20 @@ modules:
rm -rf modules-2.4 rm -rf modules-2.4
cd modules-2.2 ; tar cf ../modules-2.2.tar . cd modules-2.2 ; tar cf ../modules-2.2.tar .
rm -rf modules-2.2 rm -rf modules-2.2
mv modules*tar $(BASE_DIR)/user-mode-linux/usr/lib/uml mv -f modules*tar $(BASE_DIR)/user-mode-linux/usr/lib/uml
cp -fa $(BASE_DIR)/linux-$(VERSION)/drivers/mtd/devices/blkmtd.o $(BASE_DIR)/yard/replacements/usr/src/linux-um/drivers/mtd/devices/blkmtd.o
cp -fa $(BASE_DIR)/linux-$(VERSION)/drivers/mtd/devices/mtdram.o $(BASE_DIR)/yard/replacements/usr/src/linux-um/drivers/mtd/devices/mtdram.o
tools: tools:
for d in $(TOOLS) ; do $(MAKE) -C $$d all ; done for d in $(TOOLS) ; do $(MAKE) -C $$d all ; done
for d in $(TOOLS) ; do $(MAKE) -C $$d install DESTDIR=$(BASE_DIR)/user-mode-linux; done for d in $(TOOLS) ; do $(MAKE) -C $$d install DESTDIR=$(BASE_DIR)/user-mode-linux; done
mkfs: genext2fs:
@if [ ! -f $(GENEXT2_DIR)/genext2fs ] ; then \ @if [ ! -f $(GENEXT2_DIR)/genext2fs ] ; then \
$(MAKE) -C $(GENEXT2_DIR); \ $(MAKE) -C $(GENEXT2_DIR); \
fi; fi;
install: install:
install -d $(DESTDIR)/usr/bin install -d $(DESTDIR)/usr/bin
cp -fa gbootroot $(DESTDIR)/usr/bin/gbootroot cp -fa gbootroot $(DESTDIR)/usr/bin/gbootroot
@ -148,7 +151,8 @@ install:
cp -fa user-mode-linux/usr/lib/uml/port-helper $(DESTDIR)/usr/lib/uml/port-helper cp -fa user-mode-linux/usr/lib/uml/port-helper $(DESTDIR)/usr/lib/uml/port-helper
install -d $(DESTDIR)/usr/share/gbootroot/yard/templates install -d $(DESTDIR)/usr/share/gbootroot/yard/templates
cp -fa yard/templates/Example* $(DESTDIR)/usr/share/gbootroot/yard/templates cp -fa yard/templates/Example* $(DESTDIR)/usr/share/gbootroot/yard/templates
cp -fa yard/templates/Helper.yard $(DESTDIR)/usr/share/gbootroot/yard/templates cp -fa yard/templates/Helper.yard $(DESTDIR)/usr/share/gbootroot/yard/templates
cp -fa yard/templates/Initrd.yard $(DESTDIR)/usr/share/gbootroot/yard/templates
install -d $(DESTDIR)/usr/share/gbootroot/genext2fs install -d $(DESTDIR)/usr/share/gbootroot/genext2fs
cp -fa genext2fs/genext2fs.c $(DESTDIR)/usr/share/gbootroot/genext2fs cp -fa genext2fs/genext2fs.c $(DESTDIR)/usr/share/gbootroot/genext2fs
cp -fa genext2fs/Makefile $(DESTDIR)/usr/share/gbootroot/genext2fs cp -fa genext2fs/Makefile $(DESTDIR)/usr/share/gbootroot/genext2fs
@ -182,4 +186,4 @@ remove:
rm /usr/X11R6/include/X11/pixmaps/gbootroot.xpm rm /usr/X11R6/include/X11/pixmaps/gbootroot.xpm
rm -rf /usr/share/doc/gbootroot rm -rf /usr/share/doc/gbootroot
.PHONY: tools sources .PHONY: tools sources genext2fs

View File

@ -3,7 +3,7 @@
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" <body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E"
alink="#FF0000"> alink="#FF0000">
<center>$Id: index.html,v 1.101 2002/05/04 22:11:32 freesource Exp $</center> <center>$Id: index.html,v 1.102 2002/05/04 22:31:37 freesource Exp $</center>
<p> <p>
@ -167,8 +167,7 @@ or on again.&nbsp;&nbsp;At times it may be advantageous to turn off the
verbosity box verbosity box
since large quantities of output to this box may cause gbootroot to use too since large quantities of output to this box may cause gbootroot to use too
much cpu power; however, output may still be found in the text file "verbose" much cpu power; however, output may still be found in the text file "verbose"
in /tmp/gbootroot_tmp'time-date' or /tmp/gboot_non_root_`id -u` for in /tmp/gboot_non_root_`id -u`.</p>
normal users.</p>
<br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br>

View File

@ -52,6 +52,7 @@ my $urgency = "low";
#my $group = "utils"; #my $group = "utils";
#my $priority = "optional"; #my $priority = "optional";
my $gbootroot_cvs = "$user_home/gbootroot/gbootroot"; my $gbootroot_cvs = "$user_home/gbootroot/gbootroot";
my $gbootroot_cvs_rep = "$gbootroot_cvs/yard/replacements";
my $packaging_place = "$user_home/gbootroot/PACKAGING"; my $packaging_place = "$user_home/gbootroot/PACKAGING";
my $packaging_place_orig = $packaging_place; my $packaging_place_orig = $packaging_place;
my $packaging_defaults = "$gbootroot_cvs/pkg/dpkg"; my $packaging_defaults = "$gbootroot_cvs/pkg/dpkg";
@ -59,6 +60,7 @@ my $email = "freesource\@users.sourceforge.net";
my $name = "Jonathan Rosenbaum"; my $name = "Jonathan Rosenbaum";
my $makefile = "Makefile.pkg"; my $makefile = "Makefile.pkg";
# RPM stuff - a filelist is used # RPM stuff - a filelist is used
my $rpm_packaging_place = "$gbootroot_cvs/pkg/rpm"; my $rpm_packaging_place = "$gbootroot_cvs/pkg/rpm";
my $SPECS = "/usr/src/rpm/SPECS"; my $SPECS = "/usr/src/rpm/SPECS";
@ -89,13 +91,41 @@ close(CVS);
$packaging_place = "$packaging_place/$prog-$version"; $packaging_place = "$packaging_place/$prog-$version";
my $packaging_place_rep = "$packaging_place/yard/replacements";
# Do we want a deb, rpm or both # Do we want a deb, rpm or both
if (!( $ARGV[0] eq "both" || $ARGV[0] eq "deb" || $ARGV[0] eq "rpm" || if (!( $ARGV[0] eq "both" || $ARGV[0] eq "deb" || $ARGV[0] eq "rpm" ||
$ARGV[0] eq "src" ) ) { $ARGV[0] eq "src" || $ARGV[0] eq "cvs" ) ) {
die "Specify: both, deb, or rpm or src\n"; die "Specify: both, deb, or rpm or src or cvs\n";
}
# Here's where we get to copy over all the pristine sources from the build
if ( -e $packaging_place) {
# sources
system "cp -a $packaging_place/sources/* $gbootroot_cvs/sources/";
# modules
system "cp -a $packaging_place_rep/usr/src/linux-um/drivers/mtd/devices/blkmtd.o $gbootroot_cvs_rep/usr/src/linux-um/drivers/mtd/devices/blkmtd.o";
system "cp -a $packaging_place_rep/usr/src/linux-um/drivers/mtd/devices/mtdram.o $gbootroot_cvs_rep/usr/src/linux-um/drivers/mtd/devices/mtdram.o";
system "cp -a $packaging_place/user-mode-linux/usr/lib/uml/modules* $gbootroot_cvs/user-mode-linux/usr/lib/uml/";
# tools & kernel
system "cp -a $packaging_place/user-mode-linux/usr/lib/uml/port-helper $gbootroot_cvs/user-mode-linux/usr/lib/uml/port-helper";
system "cp -a $packaging_place/user-mode-linux/usr/bin/* $gbootroot_cvs/user-mode-linux/usr/bin/";
# kernel config
system "cp -a $packaging_place/user-mode-linux/usr/lib/uml/config $gbootroot_cvs/user-mode-linux/usr/lib/uml/";
# genext2fs
system "cp -a $packaging_place/genext2fs/genext2fs $gbootroot_cvs/genext2fs/genext2fs";
exit;
} }
@ -156,7 +186,6 @@ system "cp -fa $makefile $packaging_place/Makefile";
system "cp -fa README $packaging_place/README"; system "cp -fa README $packaging_place/README";
system "cp -fa user-mode-linux/usr/lib/uml/cramfs-vfs-order.patch $packaging_place/user-mode-linux/usr/lib/uml/cramfs-vfs-order.patch"; system "cp -fa user-mode-linux/usr/lib/uml/cramfs-vfs-order.patch $packaging_place/user-mode-linux/usr/lib/uml/cramfs-vfs-order.patch";
system "ln -sf $packaging_place/yard/replacements $packaging_place/yard/Replacements"; system "ln -sf $packaging_place/yard/replacements $packaging_place/yard/Replacements";
mkdir("$packaging_place/linux");
mkdir("$packaging_place/sources"); mkdir("$packaging_place/sources");
# Now we get to clean out any CVS directories and make sure that the # Now we get to clean out any CVS directories and make sure that the