Rev 3479 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3479 | Rev 3492 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | SILO_PACKAGE=silo.tar.gz |
36 | SILO_PACKAGE=silo.tar.gz |
37 | endif |
37 | endif |
38 | 38 | ||
39 | build: $(BASE)/image.iso |
39 | build: $(BASE)/image.iso |
40 | 40 | ||
- | 41 | ifeq ($(CONFIG_RD_EXTERNAL),y) |
|
- | 42 | SILO_CONF_FILTER = cat |
|
- | 43 | else |
|
- | 44 | SILO_CONF_FILTER = grep -v initrd |
|
- | 45 | endif |
|
- | 46 | ||
41 | $(BASE)/image.iso: depend arch/$(ARCH)/loader/image.boot |
47 | $(BASE)/image.iso: depend arch/$(ARCH)/loader/image.boot |
42 | mkdir -p $(TMP)/boot |
48 | mkdir -p $(TMP)/boot |
43 | mkdir -p $(TMP)/HelenOS |
49 | mkdir -p $(TMP)/HelenOS |
44 | cat arch/$(ARCH)/silo/$(SILO_PACKAGE) | (cd $(TMP)/boot; tar xvfz -) |
50 | cat arch/$(ARCH)/silo/$(SILO_PACKAGE) | (cd $(TMP)/boot; tar xvfz -) |
45 | cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING arch/$(ARCH)/silo/silo.conf $(TMP)/boot |
51 | cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING $(TMP)/boot |
- | 52 | cat arch/$(ARCH)/silo/silo.conf | $(SILO_CONF_FILTER) >$(TMP)/boot/silo.conf |
|
46 | cp arch/$(ARCH)/loader/image.boot $(TMP)/HelenOS/image.boot |
53 | cp arch/$(ARCH)/loader/image.boot $(TMP)/HelenOS/image.boot |
47 | gzip -f $(TMP)/HelenOS/image.boot |
54 | gzip -f $(TMP)/HelenOS/image.boot |
- | 55 | ifeq ($(CONFIG_RD_EXTERNAL),y) |
|
- | 56 | cp arch/$(ARCH)/loader/initrd.img $(TMP)/HelenOS/initrd.img |
|
- | 57 | endif |
|
48 | mkisofs -f -G $(TMP)/boot/isofs.b -B ... -r -o $(BASE)/image.iso $(TMP)/ |
58 | mkisofs -f -G $(TMP)/boot/isofs.b -B ... -r -o $(BASE)/image.iso $(TMP)/ |
49 | 59 | ||
50 | depend: |
60 | depend: |
51 | -rm arch/$(ARCH)/loader/image.boot |
61 | -rm arch/$(ARCH)/loader/image.boot |
52 | 62 |