Home | History | Annotate | Download | only in mkbootimage
History log of /src/sys/arch/powerpc/stand/mkbootimage/mkbootimage.c
RevisionDateAuthorComments
 1.21  03-Nov-2024  gutteridge mkbootimage.c: consistently use sa_htobe32(2)

There were 38 calls to sa_htobe32(2) and two to htonl(3), mixed even
within the same function, with arpa/inet.h not included. (It's unclear
why this varied, as the original version of this file first checked in
included this discrepancy.)

Addresses build failure issue on current Linux distros that have a GCC
with implicit-function-declaration baked in as an error. Build tested
on Fedora 40.

Issue reported by Jan-Benedict Glaw. Also relevant to PR lib/58674.
 1.20  08-Feb-2024  christos PR/57906: Jan-Benedict Glaw: Extend`mkbootimage` to allow for
$MKREPRO_TIMESTAMP usage
 1.19  21-Jan-2016  christos branches: 1.19.48;
PR/50685: David Binderman: fix memory leak
 1.18  22-Apr-2014  phx branches: 1.18.4;
Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
 1.17  09-Jul-2013  joerg branches: 1.17.4;
Fix format string.
 1.16  19-Dec-2012  kiyohara branches: 1.16.2;
Obsolete options '-s'(standalone) on bebox. bebox can boot no-standalone image
from FD or HDD.
 1.15  19-May-2012  kiyohara branches: 1.15.2;
prep's boot supports to load kernel from HDD. We can specify option -I
(no in-kernel).
 1.14  26-Jan-2011  joerg branches: 1.14.4; 1.14.8; 1.14.10;
Fix tools build on !NetBSD. Fix printfs to use correct types.
 1.13  16-Oct-2010  kiyohara branches: 1.13.2; 1.13.4;
Add option -I (no-inkernel). bebox loads kernel from HDD.
 1.12  16-Oct-2010  kiyohara Remove unnecessary white-spaces and Tabs.
Replace white-spaces to Tab.
 1.11  01-Sep-2008  martin branches: 1.11.14; 1.11.16;
Fix machine_arch vs. machine confusion, PR 39436.
OK: garbled
 1.10  24-May-2008  kiyohara branches: 1.10.4;
Fix some bugs for bebox.
 1.9  30-Apr-2008  garbled branches: 1.9.2;
Convert prep to use the new unified mkbootimage rather than it's own. This
mkbootimage can be shared by prep, rs6000, and bebox.

TODO: Convert bebox to use this. Needs someone to test.
 1.8  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.7  24-Dec-2007  garbled branches: 1.7.2; 1.7.4; 1.7.6; 1.7.12; 1.7.14; 1.7.16;
Fix a segv if you forget to set the -m option.
 1.6  20-Dec-2007  garbled branches: 1.6.2;
Add bebox mkbootimage stuff to the unified mkbootimage. It should work
in theory, assuming:

a) I didn't mess up
b) The original code in bebox/stand actually works
 1.5  20-Dec-2007  garbled add verbose flag to usage statement.
 1.4  20-Dec-2007  garbled Port over the code from rs6000/stand/mkbootimage. Now the unified
mkbootimage can build both prep and rs6000 images.
 1.3  19-Dec-2007  garbled Changed my mind on naming this prep_magic.h. Change it back to magic.h.
Sorry for the churn.
 1.2  18-Dec-2007  garbled First crack at a new unified mkbootimage for powerpc. Still some work
left to do here, so the build isn't enabled yet.
 1.1  18-Dec-2007  garbled Copy prep/stand/mkbootimage over to powerpc/stand/mkbootimage. The
makefile still needs work, and I still need to do some additional
fiddling here, but this is to be the unified rs6000/prep/bebox
mkbootimage eventually.
 1.6.2.2  18-Feb-2008  mjf Sync with HEAD.
 1.6.2.1  20-Dec-2007  mjf file mkbootimage.c was added on branch mjf-devfs on 2008-02-18 21:04:59 +0000
 1.7.16.2  04-May-2009  yamt sync with head.
 1.7.16.1  16-May-2008  yamt sync with head.
 1.7.14.2  04-Jun-2008  yamt sync with head
 1.7.14.1  18-May-2008  yamt sync with head.
 1.7.12.2  28-Sep-2008  mjf Sync with HEAD.
 1.7.12.1  02-Jun-2008  mjf Sync with HEAD.
 1.7.6.2  21-Jan-2008  yamt sync with head
 1.7.6.1  24-Dec-2007  yamt file mkbootimage.c was added on branch yamt-lazymbuf on 2008-01-21 09:38:31 +0000
 1.7.4.2  09-Jan-2008  matt sync with HEAD
 1.7.4.1  24-Dec-2007  matt file mkbootimage.c was added on branch matt-armv6 on 2008-01-09 01:47:58 +0000
 1.7.2.2  02-Jan-2008  bouyer Sync with HEAD
 1.7.2.1  24-Dec-2007  bouyer file mkbootimage.c was added on branch bouyer-xeni386 on 2008-01-02 21:49:15 +0000
 1.9.2.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.9.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.10.4.1  19-Oct-2008  haad Sync with HEAD.
 1.11.16.1  05-Mar-2011  rmind sync with head
 1.11.14.1  22-Oct-2010  uebayasi Sync with HEAD (-D20101022).
 1.13.4.1  08-Feb-2011  bouyer Sync with HEAD
 1.13.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.14.10.1  03-Jun-2014  msaitoh Pull up following revision(s) (requested by phx in ticket #1074):
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c: revision 1.18
sys/arch/powerpc/stand/mkbootimage/pef.h: revision 1.3
sys/arch/powerpc/stand/mkbootimage/bebox_bootrec.h: revision 1.4
Fixed mkbootimage for 64-bit architectures. Now I can create a working
BeBox boot.fs under NetBSD/amd64.
 1.14.8.1  02-Jun-2012  mrg sync to latest -current.
 1.14.4.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.14.4.2  23-Jan-2013  yamt sync with head
 1.14.4.1  23-May-2012  yamt sync with head.
 1.15.2.3  03-Dec-2017  jdolecek update from HEAD
 1.15.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.15.2.1  25-Feb-2013  tls resync with head
 1.16.2.2  18-May-2014  rmind sync with head
 1.16.2.1  28-Aug-2013  rmind sync with head
 1.17.4.1  10-Aug-2014  tls Rebase.
 1.18.4.1  19-Mar-2016  skrll Sync with HEAD
 1.19.48.1  15-Dec-2024  martin Pull up following revision(s) (requested by gutteridge in ticket #1019):

sys/arch/hppa/stand/mkboot/mkboot.c: revision 1.5
sys/arch/powerpc/stand/mkbootimage/mkbootimage.c: revision 1.21
usr.bin/elf2aout/elf2aout.c: revision 1.25

mkboot.c: ensure all functions are declared

Addresses build failure issue on current Linux distros that have a GCC
with implicit-function-declaration baked in as an error. Use be32toh(3)
instead of ntohl(3), seems to make more sense stylistically. Build
tested on Fedora 40.

Issue reported by Jan-Benedict Glaw. Also relevant to PR lib/58674.


elf2aout.c: switch to use htobe32(3)

As discussed on tech-toolchain. Tested with virt68k tools build on
Fedora 40. (Relevant to PR lib/58674.)


mkbootimage.c: consistently use sa_htobe32(2)

There were 38 calls to sa_htobe32(2) and two to htonl(3), mixed even
within the same function, with arpa/inet.h not included. (It's unclear
why this varied, as the original version of this file first checked in
included this discrepancy.)

Addresses build failure issue on current Linux distros that have a GCC
with implicit-function-declaration baked in as an error. Build tested
on Fedora 40.

Issue reported by Jan-Benedict Glaw. Also relevant to PR lib/58674.

RSS XML Feed