blob: a1ea1f69d19310fb1119ec1f036f8f667195482d (
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
85
86
|
# -*-makefile-*-
#
# Copyright (C) 2010 by Stephan Linz
#
# See CREDITS for details about who has contributed to this project.
#
# 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 remove_quotes,$(PTXCONF_X_LOAD_VERSION))
X_LOAD_MD5 := $(call remove_quotes,$(PTXCONF_X_LOAD_MD5))
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)
@install -D -m644 $(X_LOAD_DIR)/x-load.bin $(IMAGEDIR)/x-load.bin
ifdef PTXCONF_X_LOAD_MAKE_IFT
@install -D -m644 $(X_LOAD_DIR)/x-load.bin.ift $(IMAGEDIR)/x-load.bin.ift
@install -D -m644 $(X_LOAD_DIR)/x-load.bin.ift $(IMAGEDIR)/MLO
endif
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
$(STATEDIR)/x-load.clean:
@$(call targetinfo)
@$(call clean_pkg, X_LOAD)
@rm -f $(IMAGEDIR)/x-load.bin $(IMAGEDIR)/x-load.bin.ift $(IMAGEDIR)/MLO
# vim: syntax=make
|