mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-02 21:30: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
|
||||
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
|
||||
|
||||
ifneq ($(shell uname -m),m68k)
|
||||
@ -55,14 +64,14 @@ vmlinuz: vmlinux.bin
|
||||
mv vmlinuz.out.gz vmlinuz
|
||||
|
||||
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::
|
||||
$(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::
|
||||
$(MAKE) -C tools all
|
||||
$(MAKE) -C tools all VERSION=$(VERSION) SIGNATURE="$(SIGNATURE)"
|
||||
|
||||
|
||||
dump: floppy.img
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
PROGRAMS = emile-set-cmdline emile-first-info emile-first-tune emile-install
|
||||
|
||||
CPPFLAGS = -DSIGNATURE="\"$(SIGNATURE)\""
|
||||
CFLAGS = -Wall
|
||||
|
||||
all: $(PROGRAMS)
|
||||
|
@ -19,6 +19,7 @@ static void usage(int argc, char** argv)
|
||||
{
|
||||
fprintf(stderr, "Usage: %s <image>\n", argv[0]);
|
||||
fprintf(stderr, "\n display first level boot block info\n");
|
||||
fprintf(stderr, "\nbuild: \n%s\n", SIGNATURE);
|
||||
}
|
||||
|
||||
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, " -s <size> : set size of second level in bytes\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,
|
||||
|
@ -19,6 +19,7 @@
|
||||
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, "\nbuild: \n%s\n", SIGNATURE);
|
||||
}
|
||||
|
||||
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:
|
||||
* 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)
|
||||
|
Loading…
Reference in New Issue
Block a user