summaryrefslogtreecommitdiffstats
path: root/rules/x-load.make
blob: 6fcf7a6c06cfa0e37351c84926ed21c38d81968f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# -*-makefile-*-
#
# Copyright (C) 2010 by Stephan Linz
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_X_LOAD) += x-load

#
# Paths and names
#
X_LOAD_VERSION	:= $(call ptx/config-version, PTXCONF_X_LOAD)
X_LOAD_MD5	:= $(call ptx/config-md5, PTXCONF_X_LOAD)
X_LOAD		:= x-load-$(X_LOAD_VERSION)
X_LOAD_SUFFIX	:= tar.bz2
X_LOAD_URL	:= http://www.ptxdist.org/software/ptxdist/temporary-src/$(X_LOAD).$(X_LOAD_SUFFIX)
X_LOAD_SOURCE	:= $(SRCDIR)/$(X_LOAD).$(X_LOAD_SUFFIX)
X_LOAD_DIR	:= $(BUILDDIR)/$(X_LOAD)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

X_LOAD_MAKE_ENV	:= CROSS_COMPILE=$(BOOTLOADER_CROSS_COMPILE) HOSTCC=$(HOSTCC)
X_LOAD_MAKE_PAR	:= NO

$(STATEDIR)/x-load.prepare:
	@$(call targetinfo)
	@$(call compile, X_LOAD, $(PTXCONF_X_LOAD_CONFIG))
	@$(call touch)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

X_LOAD_BUILD_TARGETS	:= all

ifdef PTXCONF_X_LOAD_MAKE_IFT
X_LOAD_BUILD_TARGETS	+= ift
endif

$(STATEDIR)/x-load.compile:
	@$(call targetinfo)
ifneq ($(strip $(X_LOAD_BUILD_TARGETS)), )
	@$(call compile, X_LOAD, $(X_LOAD_BUILD_TARGETS))
endif
	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/x-load.install:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/x-load.targetinstall:
	@$(call targetinfo)
	@$(call world/image-clean, X_LOAD)
	@$(call ptx/image-install, X_LOAD, $(X_LOAD_DIR)/x-load.bin)
ifdef PTXCONF_X_LOAD_MAKE_IFT
	@$(call ptx/image-install, X_LOAD, $(X_LOAD_DIR)/x-load.bin.ift)
	@$(call ptx/image-install, X_LOAD, $(X_LOAD_DIR)/x-load.bin.ift, MLO)
endif
	@$(call touch)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

$(STATEDIR)/x-load.clean:
	@$(call targetinfo)
	@$(call clean_pkg, X_LOAD)

# vim: syntax=make