Rev 3479 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3479 | Rev 3492 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | # |
27 | # |
28 | 28 | ||
29 | TMP=distroot |
29 | TMP = distroot |
30 | 30 | ||
31 | ifeq ($(CONFIG_AOUT_ISOFS_B),n) |
31 | ifeq ($(CONFIG_AOUT_ISOFS_B),n) |
32 | SILO_PACKAGE=silo.patched.tar.gz |
32 | SILO_PACKAGE=silo.patched.tar.gz |
33 | endif |
33 | endif |
34 | 34 | ||
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 |