Rev 3403 | Rev 3674 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3403 | Rev 3535 | ||
---|---|---|---|
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 | build: $(BASE)/image.iso |
31 | build: $(BASE)/image.iso |
32 | 32 | ||
- | 33 | ifeq ($(CONFIG_RD_EXTERNAL),y) |
|
- | 34 | SILO_CONF_FILTER = cat |
|
- | 35 | else |
|
- | 36 | SILO_CONF_FILTER = grep -v initrd |
|
- | 37 | endif |
|
- | 38 | ||
33 | $(BASE)/image.iso: depend arch/$(ARCH)/loader/image.boot |
39 | $(BASE)/image.iso: depend arch/$(ARCH)/loader/image.boot |
34 | mkdir -p $(TMP)/boot |
40 | mkdir -p $(TMP)/boot |
35 | mkdir -p $(TMP)/HelenOS |
41 | mkdir -p $(TMP)/HelenOS |
36 | cat arch/$(ARCH)/silo/silo.tar.gz | (cd $(TMP)/boot; tar xvfz -) |
42 | cat arch/$(ARCH)/silo/silo.tar.gz | (cd $(TMP)/boot; tar xvfz -) |
37 | cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING arch/$(ARCH)/silo/silo.conf $(TMP)/boot |
43 | cp arch/$(ARCH)/silo/README arch/$(ARCH)/silo/COPYING $(TMP)/boot |
- | 44 | cat arch/$(ARCH)/silo/silo.conf | $(SILO_CONF_FILTER) >$(TMP)/boot/silo.conf |
|
38 | cp arch/$(ARCH)/loader/image.boot $(TMP)/HelenOS/image.boot |
45 | cp arch/$(ARCH)/loader/image.boot $(TMP)/HelenOS/image.boot |
39 | gzip -f $(TMP)/HelenOS/image.boot |
46 | gzip -f $(TMP)/HelenOS/image.boot |
- | 47 | ifeq ($(CONFIG_RD_EXTERNAL),y) |
|
40 | cp arch/$(ARCH)/loader/initrd.img $(TMP)/HelenOS/initrd.img |
48 | cp arch/$(ARCH)/loader/initrd.img $(TMP)/HelenOS/initrd.img |
- | 49 | endif |
|
41 | mkisofs -f -G $(TMP)/boot/isofs.b -B ... -r -o $(BASE)/image.iso $(TMP)/ |
50 | mkisofs -f -G $(TMP)/boot/isofs.b -B ... -r -o $(BASE)/image.iso $(TMP)/ |
42 | 51 | ||
43 | depend: |
52 | depend: |
44 | -rm arch/$(ARCH)/loader/image.boot |
53 | -rm arch/$(ARCH)/loader/image.boot |
45 | 54 |