Skip to contentSkip to conversation

Another patch

PATCH Tommy McCabe 3 participants 4 messages Jul 12, 2004 – Jul 27, 2004

lore
Share & tools
lore
#0 lore raw

This patch:

1. Has eight partitions per hard disk instead of 64, to save indoes and not flood the disk images. This time I didn't change the commented-out stuff like the secondary IDE channel.

2. Remove the Conrad Parallel Port Radio Clock (which I think is some sort of easter egg) from MAKEDEV.

3. Fixed the "make clean" process.

4. Got rid of the sudos in the Makefile.

5. Got rid of the ridiculous business with a ROOTDIR that didn't exist and commands that weren't referenced anywhere in the Makefile.

__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

elkscurr/elkscmd/Make.rules renamed from elkscomp/elkscmd/Make.rules +0 -2
diff -ruN ./elkscomp/elkscmd/Make.rules ./elkscurr/elkscmd/Make.rules
@@ -68,8 +68,6 @@
 #
 # Directory to create the target tree in.
 
-ROOTDIR=$(BASEDIR)/RootFS
-
 ###############################################################################
 #
 # Command to copy the tree across.
elkscurr/elkscmd/Makefile renamed from elkscomp/elkscmd/Makefile +0 -35
diff -ruN ./elkscomp/elkscmd/Makefile ./elkscurr/elkscmd/Makefile
@@ -46,12 +46,7 @@
 		$(FULL3_TARGET_FS) $(FULL5_TARGET_FS) || true
 	rm -f $(COMB_TARGET_FS) $(ROOT_TARGET_FS) $(ROOT_NET_TARGET_FS) \
 		$(FULL3_TARGET_FS) $(FULL5_TARGET_FS) boot images.zip core
-	rm -rf rootfs_template $(ROOTDIR)
 	@for i in $(DIRS); do make -C $$i clean ; done
-	-echo FIXME: make clean is temporarily broken, because there is no
-	-echo rootfs_template.tar anymore
-	tar xf rootfs_template.tar
-
 ###############################################################################
 #
 # Include standard packaging commands.
@@ -84,30 +79,6 @@
 
 ###############################################################################
 #
-# Create standard packages.
-
-basepkg:
-	rm -fr $(ROOTDIR)
-	mkdir $(ROOTDIR)
-	make mkbase
-
-netpkg:
-	rm -fr $(ROOTDIR)
-	mkdir $(ROOTDIR)
-	make mknet
-
-stdpkg:
-	rm -fr $(ROOTDIR)
-	mkdir $(ROOTDIR)
-	make mkstd
-
-maxpkg:
-	rm -fr $(ROOTDIR)
-	mkdir $(ROOTDIR)
-	make mkmax
-
-###############################################################################
-#
 # Create relevant parts of ELKS package.
 
 $(ELKS_DIR)/.config:
@@ -154,42 +125,36 @@
 
 mount_combfs: $(COMB_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(COMB_TARGET_FS) $(COMB_TARGET_BLKS)
-	sudo -u root mount $(COMB_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_full3fs: $(FULL3_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(FULL3_TARGET_FS) $(FULL3_TARGET_BLKS)
-	sudo -u root mount $(FULL3_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_full5fs: $(FULL5_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(FULL5_TARGET_FS) $(FULL5_TARGET_BLKS)
-	sudo -u root mount $(FULL5_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_rootfs: $(ROOT_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(ROOT_TARGET_FS) $(ROOT_TARGET_BLKS)
-	sudo -u root mount $(ROOT_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_rootnetfs: $(ROOT_NET_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(ROOT_NET_TARGET_FS) $(ROOT_NET_TARGET_BLKS)
-	sudo -u root mount $(ROOT_NET_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 	
 mount_sibofs: $(SIBO_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(SIBO_TARGET_FS) $(SIBO_TARGET_BLKS)
-	sudo -u root mount $(SIBO_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT) ; rm -rf home boot root var)
elkscurr/elkscmd/rootfs_template/dev/MAKEDEV renamed from elkscomp/elkscmd/rootfs_template/dev/MAKEDEV +6 -11
diff -ruN ./elkscomp/elkscmd/rootfs_template/dev/MAKEDEV ./elkscurr/elkscmd/rootfs_template/dev/MAKEDEV
@@ -97,8 +97,8 @@
 ##############################################################################
 # Direct IDE disks, Primary channel.
 
-	$MKSET   0 63 $MKDEV hda b 5	# Currently.
-	$MKSET  64 63 $MKDEV hdb b 5	# Currently.
+	$MKSET   0 7 $MKDEV hda b 5	# Currently.
+	$MKSET   8 7 $MKDEV hdb b 5	# Currently.
 
 #	$MKSET   0 63 $MKDEV hda b 3	# Ought to be.
 #	$MKSET  64 63 $MKDEV hdb b 3	# Ought to be.
@@ -189,10 +189,10 @@
 ##############################################################################
 # BIOS hard disks.
 
-	$MKSET   0 63 $MKDEV bda b 3	# Currently
-	$MKSET  64 63 $MKDEV bdb b 3	# Currently
-	$MKSET 128 63 $MKDEV bdc b 3	# Currently
-	$MKSET 192 63 $MKDEV bdd b 3	# Currently
+	$MKSET   0 7 $MKDEV bda b 3	# Currently
+	$MKSET   8 7 $MKDEV bdb b 3	# Currently
+	$MKSET  16 7 $MKDEV bdc b 3	# Currently
+	$MKSET  24 7 $MKDEV bdd b 3	# Currently
 
 #	$MKSET   0 63 $MKDEV bda b 14	# Ought to be
 #	$MKSET  64 63 $MKDEV bdb b 14	# Ought to be
@@ -256,9 +256,4 @@
 #	$MKSET   0 7  $MKDEV i2c c 89
 
 ##############################################################################
-# Conrad Electronic Parallel Port Radio Clocks. These are not yet supported.
-
-#	$MKSET	 0 1  $MKDEV pcfclock c 181
-
-##############################################################################
 # EOF.
#1 lore raw

Greetings,

Quoted 6 lines · Tommy McCabe

This patch:

1. Has eight partitions per hard disk instead of 64, to save indoes and not flood the disk images. This time I didn't change the commented-out stuff like the secondary IDE channel.

I would like to hear out some votes about this before actually applying it.. in my personal opinion it should go, but perhaps anyone have a different opinion? (Allan? Harry? Claudio? ... ?)

Quoted 4 lines

2. Remove the Conrad Parallel Port Radio Clock (which I think is some sort of easter egg) from MAKEDEV.

sort of an easter egg... interesting definition. Honestly i can't just a feature with that justification.

Quoted 2 lines

3. Fixed the "make clean" process.

Applied the rootfs_template.tar fix.

Quoted 2 lines

4. Got rid of the sudos in the Makefile.

Definitly applied, BUT.. keeping the mount commands.

Quoted 4 lines

5. Got rid of the ridiculous business with a ROOTDIR that didn't exist and commands that weren't referenced anywhere in the Makefile.

NOT applied.

best wishes

Mike

Quoted 149 lines

__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

______________________________________________________________________
diff -ruN ./elkscomp/elkscmd/Make.rules ./elkscurr/elkscmd/Make.rules

elkscurr/elkscmd/Make.rules renamed from elkscomp/elkscmd/Make.rules +0 -2
@@ -68,8 +68,6 @@
 #
 # Directory to create the target tree in.
 
-ROOTDIR=$(BASEDIR)/RootFS
-
 ###############################################################################
 #
 # Command to copy the tree across.

diff -ruN ./elkscomp/elkscmd/Makefile ./elkscurr/elkscmd/Makefile

elkscurr/elkscmd/Makefile renamed from elkscomp/elkscmd/Makefile +0 -35
@@ -46,12 +46,7 @@
 		$(FULL3_TARGET_FS) $(FULL5_TARGET_FS) || true
 	rm -f $(COMB_TARGET_FS) $(ROOT_TARGET_FS) $(ROOT_NET_TARGET_FS) \
 		$(FULL3_TARGET_FS) $(FULL5_TARGET_FS) boot images.zip core
-	rm -rf rootfs_template $(ROOTDIR)
 	@for i in $(DIRS); do make -C $$i clean ; done
-	-echo FIXME: make clean is temporarily broken, because there is no
-	-echo rootfs_template.tar anymore
-	tar xf rootfs_template.tar
-
 ###############################################################################
 #
 # Include standard packaging commands.
@@ -84,30 +79,6 @@
 
 ###############################################################################
 #
-# Create standard packages.
-
-basepkg:
-	rm -fr $(ROOTDIR)
-	mkdir $(ROOTDIR)
-	make mkbase
-
-netpkg:
-	rm -fr $(ROOTDIR)
-	mkdir $(ROOTDIR)
-	make mknet
-
-stdpkg:
-	rm -fr $(ROOTDIR)
-	mkdir $(ROOTDIR)
-	make mkstd
-
-maxpkg:
-	rm -fr $(ROOTDIR)
-	mkdir $(ROOTDIR)
-	make mkmax
-
-###############################################################################
-#
 # Create relevant parts of ELKS package.
 
 $(ELKS_DIR)/.config:
@@ -154,42 +125,36 @@
 
 mount_combfs: $(COMB_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(COMB_TARGET_FS) $(COMB_TARGET_BLKS)
-	sudo -u root mount $(COMB_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_full3fs: $(FULL3_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(FULL3_TARGET_FS) $(FULL3_TARGET_BLKS)
-	sudo -u root mount $(FULL3_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_full5fs: $(FULL5_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(FULL5_TARGET_FS) $(FULL5_TARGET_BLKS)
-	sudo -u root mount $(FULL5_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_rootfs: $(ROOT_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(ROOT_TARGET_FS) $(ROOT_TARGET_BLKS)
-	sudo -u root mount $(ROOT_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_rootnetfs: $(ROOT_NET_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(ROOT_NET_TARGET_FS) $(ROOT_NET_TARGET_BLKS)
-	sudo -u root mount $(ROOT_NET_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT)/dev ; ./MAKEDEV)
 
 mount_sibofs: $(SIBO_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(MKFS) $(MKFS_OPTS) $(SIBO_TARGET_FS) $(SIBO_TARGET_BLKS)
-	sudo -u root mount $(SIBO_TARGET_FS) $(TARGET_MNT) $(LOOP)
 	(cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \
 		(cd $(TARGET_MNT) ; tar xpvf -)
 	(cd $(TARGET_MNT) ; rm -rf home boot root var)

diff -ruN ./elkscomp/elkscmd/rootfs_template/dev/MAKEDEV ./elkscurr/elkscmd/rootfs_template/dev/MAKEDEV

elkscurr/elkscmd/rootfs_template/dev/MAKEDEV renamed from elkscomp/elkscmd/rootfs_template/dev/MAKEDEV +6 -11
@@ -97,8 +97,8 @@
 ##############################################################################
 # Direct IDE disks, Primary channel.
 
-	$MKSET   0 63 $MKDEV hda b 5	# Currently.
-	$MKSET  64 63 $MKDEV hdb b 5	# Currently.
+	$MKSET   0 7 $MKDEV hda b 5	# Currently.
+	$MKSET   8 7 $MKDEV hdb b 5	# Currently.
 
 #	$MKSET   0 63 $MKDEV hda b 3	# Ought to be.
 #	$MKSET  64 63 $MKDEV hdb b 3	# Ought to be.
@@ -189,10 +189,10 @@
 ##############################################################################
 # BIOS hard disks.
 
-	$MKSET   0 63 $MKDEV bda b 3	# Currently
-	$MKSET  64 63 $MKDEV bdb b 3	# Currently
-	$MKSET 128 63 $MKDEV bdc b 3	# Currently
-	$MKSET 192 63 $MKDEV bdd b 3	# Currently
+	$MKSET   0 7 $MKDEV bda b 3	# Currently
+	$MKSET   8 7 $MKDEV bdb b 3	# Currently
+	$MKSET  16 7 $MKDEV bdc b 3	# Currently
+	$MKSET  24 7 $MKDEV bdd b 3	# Currently
 
 #	$MKSET   0 63 $MKDEV bda b 14	# Ought to be
 #	$MKSET  64 63 $MKDEV bdb b 14	# Ought to be
@@ -256,9 +256,4 @@
 #	$MKSET   0 7  $MKDEV i2c c 89
 
 ##############################################################################
-# Conrad Electronic Parallel Port Radio Clocks. These are not yet supported.
-
-#	$MKSET	 0 1  $MKDEV pcfclock c 181
-
-##############################################################################
 # EOF.
#2 lore raw
Quoted 5 lines · Miguel Bolanos

Greetings,

Quoted 2 lines · Tommy McCabe

This patch:

Quoted 8 lines
Quoted 4 lines

1. Has eight partitions per hard disk instead of 64, to save indoes and not flood the disk images. This time I didn't change the commented-out stuff like the secondary IDE channel.

I would like to hear out some votes about this before actually applying it.. in my personal opinion it should go, but perhaps anyone have a different opinion? (Allan? Harry? Claudio? ... ?)

The patch breaks the major/minor numbers on MAKEDEV.

Quoted 8 lines
Quoted 5 lines

2. Remove the Conrad Parallel Port Radio Clock (which I think is some sort of easter egg) from MAKEDEV.

sort of an easter egg... interesting definition. Honestly i can't just a feature with that justification.

I agree. We can comment it, as the device is not used. Our problem is that MAKEDEV makes too many devices by default and waste inodes on the root disk. Comment out devices that are not obviously used, can help. Maybe we can have a "--few-inodes" option or something like that, for building the root disks.

Quoted 5 lines
Quoted 3 lines

3. Fixed the "make clean" process.

Applied the rootfs_template.tar fix.

Did you removed the warnings? The warning is there to tell the user that make clean is a little broken (it doesn't restore the previous state of rootfs_template), so we need to fix that, not remove the warning.

Quoted 5 lines
Quoted 3 lines

4. Got rid of the sudos in the Makefile.

Definitly applied, BUT.. keeping the mount commands.

Of course.

Quoted 5 lines
Quoted 5 lines

5. Got rid of the ridiculous business with a ROOTDIR that didn't exist and commands that weren't referenced anywhere in the Makefile.

Huh? I didn't get your point, Tommy. Please detail your changes, and explain the real reason, not just because you think it looks better, or it is "ridiculous".

Quoted 7 lines

NOT applied.

best wishes

Mike

Signature · 1 line
Eduardo
#3 lore raw

--- Eduardo Pereira Habkost

Quoted 15 lines · <[email protected]> wrote:
Quoted 6 lines · Miguel Bolanos

Greetings,

Quoted 3 lines · Tommy McCabe

This patch:

1. Has eight partitions per hard disk instead of

64,

Quoted 1 line
Quoted 1 line

to save indoes and not flood the disk images.

This

Quoted 1 line
Quoted 1 line

time I didn't change the commented-out stuff

like the

Quoted 2 lines
Quoted 1 line

secondary IDE channel.

Quoted 7 lines
Quoted 1 line

I would like to hear out some votes about this

before actually applying

Quoted 1 line

it.. in my personal opinion it should go, but

perhaps anyone have a

Quoted 1 line

different opinion? (Allan? Harry? Claudio? ... ?)

The patch breaks the major/minor numbers on MAKEDEV.

I don't know what a major-minor number is, but the number I changed were arguments to MAKESET that said how many devices to make. Besides, I tested it myself and the hard disk drivers don't even notice.

Quoted 26 lines
Quoted 3 lines
Quoted 3 lines

2. Remove the Conrad Parallel Port Radio Clock

(which

Quoted 1 line
Quoted 1 line

I think is some sort of easter egg) from

MAKEDEV.

Quoted 4 lines
Quoted 1 line

sort of an easter egg... interesting definition.
Honestly i can't just a feature with that

justification.

I agree. We can comment it, as the device is not used. Our problem is
that MAKEDEV makes too many devices by default and waste inodes on
the root disk. Comment out devices that are not obviously used, can
help. Maybe we can have a "--few-inodes" option or something like that,
for building the root disks.

Quoted 4 lines
Quoted 3 lines

3. Fixed the "make clean" process.

Quoted 8 lines
Quoted 1 line

Applied the rootfs_template.tar fix.

Did you removed the warnings? The warning is there to tell the user that
make clean is a little broken (it doesn't restore the previous state of
rootfs_template), so we need to fix that, not remove the warning.

The patched Makefile doesn't alter rootfs_template at all during make clean; but unless someone deliberately modified what was in there it wouldn't be altered in the first place.

Quoted 14 lines
Quoted 5 lines
Quoted 3 lines

4. Got rid of the sudos in the Makefile.

Definitly applied, BUT.. keeping the mount

commands.

Of course.

Quoted 2 lines
Quoted 2 lines

5. Got rid of the ridiculous business with a

ROOTDIR

Quoted 1 line
Quoted 1 line

that didn't exist and commands that weren't

referenced

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

anywhere in the Makefile.

Huh? I didn't get your point, Tommy. Please detail your changes, and
explain the real reason, not just because you think it looks better,
or it is "ridiculous".

The lines between 90-107 of the Makefile reference commands that are not used anywhere else, and thus are useless. They do, however, reference the variable ROOTDIR, which is defined in Make.rules as a directory that doesn't exist. So, I got rid of ROOTDIR and the commands which aren't used.

Quoted 13 lines
Quoted 7 lines

NOT applied.

best wishes

Mike

Signature · 4 lines
Eduardo


ATTACHMENT part 2 application/pgp-signature 

__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail