Default the location to the compiled for architecture if no -m arg specified.
This commit is contained in:
parent
c80f9755bb
commit
7838fd0ebe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=114551
@ -168,9 +168,14 @@ int installboot; /* non-zero if we should install a boot program */
|
|||||||
char *xxboot; /* primary boot */
|
char *xxboot; /* primary boot */
|
||||||
char boot0[MAXPATHLEN];
|
char boot0[MAXPATHLEN];
|
||||||
|
|
||||||
static int labeloffset;
|
static int labeloffset = LABELOFFSET;
|
||||||
static int bbsize;
|
static int bbsize = BBSIZE;
|
||||||
static int alphacksum;
|
static int alphacksum =
|
||||||
|
#if defined(__alpha__)
|
||||||
|
1;
|
||||||
|
#else
|
||||||
|
0;
|
||||||
|
#endif
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
UNSPEC, EDIT, READ, RESTORE, WRITE, WRITEBOOT
|
UNSPEC, EDIT, READ, RESTORE, WRITE, WRITEBOOT
|
||||||
@ -217,6 +222,7 @@ main(int argc, char *argv[])
|
|||||||
if (!strcmp(optarg, "i386")) {
|
if (!strcmp(optarg, "i386")) {
|
||||||
labeloffset = 512;
|
labeloffset = 512;
|
||||||
bbsize = 8192;
|
bbsize = 8192;
|
||||||
|
alphacksum = 0;
|
||||||
} else if (!strcmp(optarg, "alpha")) {
|
} else if (!strcmp(optarg, "alpha")) {
|
||||||
labeloffset = 64;
|
labeloffset = 64;
|
||||||
bbsize = 8192;
|
bbsize = 8192;
|
||||||
|
Loading…
Reference in New Issue
Block a user