1 #
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright 2015 Toomas Soome <tsoome@me.com>
14 #
15
16 include $(SRC)/Makefile.master
17
18 CFLAGS= -O2
19 CPPFLAGS= -DSTAND -nostdinc -I../../../../include -I../../..
20 LOADER= zfsloader
21 NEWVERSWHAT= "ZFS enabled bootstrap loader" x86
22 MAN=
23
24 # Set by zfsloader Makefile
25 CPPFLAGS += -DLOADER_ZFS_SUPPORT -I../../zfs
26 CPPFLAGS += -I../libi386
27 LIBZFSBOOT= ../../zfs/i386/libzfsboot.a
28 LIBI386= ../libi386/libi386.a
29
30 # loader.help build needs better awk
31 AWK= /usr/xpg4/bin/awk
32 LD= $(GNU_ROOT)/bin/gld
33 CC= $(GCC_ROOT)/bin/gcc
34 OBJCOPY= $(GNU_ROOT)/bin/gobjcopy
35 GSTRIP= $(GNU_ROOT)/bin/gstrip
36 ROOT_BOOT= $(ROOT)/boot
37 ROOT_BOOT_DEFAULTS= $(ROOT)/boot/defaults
38 ROOT_BOOT_FORTH= $(ROOT)/boot/forth
39 ROOT_BOOT_CONF= $(ROOT)/boot/conf.d
40 ROOTBOOTFILES=$(FILES:%=$(ROOT_BOOT)/%)
41 ROOTBOOTFORTH=$(FORTH:%=$(ROOT_BOOT_FORTH)/%)
42 ROOTBOOTDEFAULTS=$(DEFFILES:%=$(ROOT_BOOT_DEFAULTS)/%)
43 FILEMODE=0444
44
45 all: machine x86 ${LOADER} loader.help
46
47 install: all $(ROOTBOOTLOADER)
48
49 PROG= ${LOADER}.sym
50 INTERNALPROG=
51
52 # architecture-specific loader code
53 SRCS= main.c conf.c vers.c chain.c
54
55 CPPFLAGS += -DLOADER_TFTP_SUPPORT -DLOADER_GZIP_SUPPORT
56
57 # Enable BootForth
58 CPPFLAGS += -DBOOT_FORTH -I$(SRC)/common/ficl -I../../ficl
59 LIBFICL= ../../ficl/i386/libficl.a
60
61 # Always add MI sources
62 SRCS += boot.c commands.c console.c devopen.c interp.c
63 SRCS += interp_backslash.c interp_parse.c ls.c misc.c
64 SRCS += module.c panic.c linenoise.c
65
|
1 #
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright 2015 Toomas Soome <tsoome@me.com>
14 # Copyright 2016 RackTop Systems.
15 #
16
17 include $(SRC)/Makefile.master
18
19 CFLAGS= -O2
20 CPPFLAGS= -DSTAND -nostdinc -I../../../../include -I../../..
21 LOADER= zfsloader
22 NEWVERSWHAT= "ZFS enabled bootstrap loader" x86
23 MAN=
24
25 # Set by zfsloader Makefile
26 CPPFLAGS += -DLOADER_ZFS_SUPPORT -I../../zfs
27 CPPFLAGS += -I../libi386
28 LIBZFSBOOT= ../../zfs/i386/libzfsboot.a
29 LIBI386= ../libi386/libi386.a
30
31 # loader.help build needs better awk
32 AWK= /usr/xpg4/bin/awk
33 LD= $(GNU_ROOT)/bin/gld
34 CC= $(GCC_ROOT)/bin/gcc
35 OBJCOPY= $(GNU_ROOT)/bin/gobjcopy
36 GSTRIP= $(GNU_ROOT)/bin/gstrip
37 ROOT_BOOT= $(ROOT)/boot
38 ROOT_BOOT_DEFAULTS= $(ROOT)/boot/defaults
39 ROOT_BOOT_FORTH= $(ROOT)/boot/forth
40 ROOT_BOOT_CONF= $(ROOT)/boot/conf.d
41 ROOTBOOTFILES=$(FILES:%=$(ROOT_BOOT)/%)
42 ROOTBOOTFORTH=$(FORTH:%=$(ROOT_BOOT_FORTH)/%)
43 ROOTBOOTDEFAULTS=$(DEFFILES:%=$(ROOT_BOOT_DEFAULTS)/%)
44 FILEMODE=0444
45
46 all: ${LOADER} loader.help
47
48 ${LOADER}: machine x86
49
50 install: all $(ROOTBOOTLOADER)
51
52 PROG= ${LOADER}.sym
53 INTERNALPROG=
54
55 # architecture-specific loader code
56 SRCS= main.c conf.c vers.c chain.c
57
58 CPPFLAGS += -DLOADER_TFTP_SUPPORT -DLOADER_GZIP_SUPPORT
59
60 # Enable BootForth
61 CPPFLAGS += -DBOOT_FORTH -I$(SRC)/common/ficl -I../../ficl
62 LIBFICL= ../../ficl/i386/libficl.a
63
64 # Always add MI sources
65 SRCS += boot.c commands.c console.c devopen.c interp.c
66 SRCS += interp_backslash.c interp_parse.c ls.c misc.c
67 SRCS += module.c panic.c linenoise.c
68
|