Subversion Repositories HelenOS

Rev

Rev 2787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2787 Rev 4377
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
build: $(BASE)/image.boot
29
TMP = distroot
30
 
30
 
-
 
31
build: $(BASE)/image.iso
-
 
32
 
31
$(BASE)/image.boot: depend arch/$(ARCH)/loader/image.boot
33
$(BASE)/image.iso: depend arch/$(BARCH)/loader/image.boot
-
 
34
	mkdir -p $(TMP)/boot
-
 
35
	mkdir -p $(TMP)/ppc
32
	cp arch/$(ARCH)/loader/image.boot $(BASE)/image.boot
36
	cp arch/$(BARCH)/loader/image.boot $(TMP)/boot/image.boot
-
 
37
	cp arch/$(BARCH)/yaboot/ofboot.b $(TMP)/boot/ofboot.b
-
 
38
	cp arch/$(BARCH)/yaboot/bootinfo.txt $(TMP)/ppc/bootinfo.txt
-
 
39
	cp arch/$(BARCH)/yaboot/yaboot $(TMP)/boot/yaboot
-
 
40
	cp arch/$(BARCH)/yaboot/yaboot.conf $(TMP)/boot/yaboot.conf
-
 
41
	mkisofs -hfs -part -map arch/$(BARCH)/yaboot/maps -no-desktop -hfs-volid "HelenOS" -hfs-bless $(TMP)/boot -r -o $@ $(TMP)/
33
 
42
 
34
depend:
43
depend:
35
	-rm arch/$(ARCH)/loader/image.boot
44
	-rm arch/$(BARCH)/loader/image.boot
36
 
45
 
37
arch/$(ARCH)/loader/image.boot:
46
arch/$(BARCH)/loader/image.boot:
38
	make -C arch/$(ARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)"
47
	$(MAKE) -C arch/$(BARCH)/loader COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
39
 
48
 
40
clean: generic_clean
49
clean: generic_clean
41
	make -C arch/$(ARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR) "DEFS=$(DEFS)"
50
	$(MAKE) -C arch/$(BARCH)/loader clean COMPILER=$(COMPILER) KERNELDIR=../../../$(KERNELDIR) USPACEDIR=../../../$(USPACEDIR)
-
 
51
	-rm -fr $(TMP)
42
	-rm -f $(BASE)/image.boot
52
	-rm -f $(BASE)/image.iso