mirror of
https://github.com/vivier/EMILE.git
synced 2024-09-07 13:54:29 +00:00
Add signature(build info)
This commit is contained in:
parent
d097b876e6
commit
000f32ff38
15
Makefile
15
Makefile
@ -7,6 +7,15 @@
|
|||||||
PACKAGE = emile
|
PACKAGE = emile
|
||||||
VERSION = 0.4CVS
|
VERSION = 0.4CVS
|
||||||
|
|
||||||
|
# build info
|
||||||
|
|
||||||
|
WHO = $(shell whoami)
|
||||||
|
WHERE = $(shell hostname)
|
||||||
|
WHEN = $(shell LANG=C date)
|
||||||
|
ARCH = $(shell uname -m -o)
|
||||||
|
|
||||||
|
SIGNATURE = $(PACKAGE)-$(VERSION) $(WHO)@$(WHERE)($(ARCH)) $(WHEN)
|
||||||
|
|
||||||
# tools to use
|
# tools to use
|
||||||
|
|
||||||
ifneq ($(shell uname -m),m68k)
|
ifneq ($(shell uname -m),m68k)
|
||||||
@ -55,14 +64,14 @@ vmlinuz: vmlinux.bin
|
|||||||
mv vmlinuz.out.gz vmlinuz
|
mv vmlinuz.out.gz vmlinuz
|
||||||
|
|
||||||
first/first::
|
first/first::
|
||||||
$(MAKE) -C first OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS)
|
$(MAKE) -C first OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS) SIGNATURE="$(SIGNATURE)"
|
||||||
|
|
||||||
second/second::
|
second/second::
|
||||||
$(MAKE) -C second OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS) \
|
$(MAKE) -C second OBJCOPY=$(OBJCOPY) LD=$(LD) CC=$(CC) AS=$(AS) \
|
||||||
VERSION=$(VERSION) KERNEL_ARCH=$(KERNEL_ARCH)
|
VERSION=$(VERSION) KERNEL_ARCH=$(KERNEL_ARCH) SIGNATURE="$(SIGNATURE)"
|
||||||
|
|
||||||
tools::
|
tools::
|
||||||
$(MAKE) -C tools all
|
$(MAKE) -C tools all VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)"
|
||||||
|
|
||||||
|
|
||||||
dump: floppy.img
|
dump: floppy.img
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
PROGRAMS = emile-set-cmdline emile-first-info emile-first-tune emile-install
|
PROGRAMS = emile-set-cmdline emile-first-info emile-first-tune emile-install
|
||||||
|
|
||||||
|
CPPFLAGS = -DSIGNATURE="\"$(SIGNATURE)\""
|
||||||
CFLAGS = -Wall
|
CFLAGS = -Wall
|
||||||
|
|
||||||
all: $(PROGRAMS)
|
all: $(PROGRAMS)
|
||||||
|
@ -19,6 +19,7 @@ static void usage(int argc, char** argv)
|
|||||||
{
|
{
|
||||||
fprintf(stderr, "Usage: %s <image>\n", argv[0]);
|
fprintf(stderr, "Usage: %s <image>\n", argv[0]);
|
||||||
fprintf(stderr, "\n display first level boot block info\n");
|
fprintf(stderr, "\n display first level boot block info\n");
|
||||||
|
fprintf(stderr, "\nbuild: \n%s\n", SIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pprint(char *string)
|
static void pprint(char *string)
|
||||||
|
@ -27,6 +27,7 @@ static void usage(int argc, char** argv)
|
|||||||
fprintf(stderr, " -o <offset> : set offset of second level in bytes\n");
|
fprintf(stderr, " -o <offset> : set offset of second level in bytes\n");
|
||||||
fprintf(stderr, " -s <size> : set size of second level in bytes\n");
|
fprintf(stderr, " -s <size> : set size of second level in bytes\n");
|
||||||
fprintf(stderr, "Display current values if no flags provided\n");
|
fprintf(stderr, "Display current values if no flags provided\n");
|
||||||
|
fprintf(stderr, "\nbuild: \n%s\n", SIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
int first_tune( char* image, unsigned short tune_mask, int drive_num,
|
int first_tune( char* image, unsigned short tune_mask, int drive_num,
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
static void usage(int argc, char** argv)
|
static void usage(int argc, char** argv)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Usage: %s -f <first level> -s <second level> -i <kernel image> -r <ramdisk> -b <buffer size> <image>\n", argv[0]);
|
fprintf(stderr, "Usage: %s -f <first level> -s <second level> -i <kernel image> -r <ramdisk> -b <buffer size> <image>\n", argv[0]);
|
||||||
|
fprintf(stderr, "\nbuild: \n%s\n", SIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static unsigned long get_size(char* file)
|
static unsigned long get_size(char* file)
|
||||||
|
@ -34,6 +34,7 @@ static void usage(int argc, char** argv)
|
|||||||
/* and when kernel will support floppy driver:
|
/* and when kernel will support floppy driver:
|
||||||
* KERNEL_ARGS="vga=normal noinitrd load_ramdisk=1 prompt_ramdisk=1 ramdisk_size=16384 root=/dev/fd0 disksize=1.44 flavor=compact"
|
* KERNEL_ARGS="vga=normal noinitrd load_ramdisk=1 prompt_ramdisk=1 ramdisk_size=16384 root=/dev/fd0 disksize=1.44 flavor=compact"
|
||||||
*/
|
*/
|
||||||
|
fprintf(stderr, "\nbuild: \n%s\n", SIGNATURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
int set_cmdline(int readonly, char* image, char* cmdline)
|
int set_cmdline(int readonly, char* image, char* cmdline)
|
||||||
|
Loading…
Reference in New Issue
Block a user