summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/rules/barebox-common.make
blob: 8f7c52fd4c1d034b666a12f16f7185a93f9cafe8 (plain) (blame)
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
# -*-makefile-*-
#
# Copyright (C) 2019 Roland Hieber <rhi@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_BAREBOX_COMMON) += barebox-common

#
# Paths and names
#
BAREBOX_COMMON_VERSION		:= $(call remove_quotes,$(PTXCONF_BAREBOX_COMMON_VERSION))
BAREBOX_COMMON_MD5		:= $(call remove_quotes,$(PTXCONF_BAREBOX_COMMON_MD5))
BAREBOX_COMMON			:= barebox-common-$(BAREBOX_COMMON_VERSION)
BAREBOX_COMMON_SUFFIX		:= tar.bz2
BAREBOX_COMMON_URL		:= $(call barebox-url, BAREBOX_COMMON)
BAREBOX_COMMON_PATCHES		:= barebox-$(BAREBOX_COMMON_VERSION)
BAREBOX_COMMON_SOURCE		:= $(SRCDIR)/$(BAREBOX_COMMON_PATCHES).$(BAREBOX_COMMON_SUFFIX)
BAREBOX_COMMON_DIR		:= $(BUILDDIR)/$(BAREBOX_COMMON)
BAREBOX_COMMON_BUILD_DIR	:= $(BAREBOX_COMMON_DIR)-build
BAREBOX_COMMON_CONFIG		:= $(call ptx/in-platformconfigdir, barebox.config)
BAREBOX_COMMON_LICENSE		:= GPL-2.0-only
BAREBOX_COMMON_BUILD_OOT	:= KEEP

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

# use host pkg-config for host tools
BAREBOX_COMMON_PATH := PATH=$(HOST_PATH)

BAREBOX_COMMON_CONF_OPT := \
	-C $(BAREBOX_COMMON_DIR) \
	O=$(BAREBOX_COMMON_BUILD_DIR) \
	$(call barebox-opts, BAREBOX_COMMON)

BAREBOX_COMMON_MAKE_OPT := $(BAREBOX_COMMON_CONF_OPT)

BAREBOX_COMMON_TAGS_OPT := TAGS tags cscope

ifdef PTXCONF_BAREBOX_COMMON
$(BAREBOX_COMMON_CONFIG):
	@echo
	@echo "****************************************************************************"
	@echo " Please generate a bareboxconfig with 'ptxdist menuconfig barebox-common'"
	@echo "****************************************************************************"
	@echo
	@echo
	@exit 1
endif

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

$(STATEDIR)/barebox-common.compile:
	@$(call targetinfo)
	@$(call touch)

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

$(STATEDIR)/barebox-common.install:
	@$(call targetinfo)
	@$(call touch)

# ----------------------------------------------------------------------------
# oldconfig / menuconfig
# ----------------------------------------------------------------------------

barebox-common_menuconfig barebox-common_nconfig: $(STATEDIR)/barebox-common.extract
	@$(call world/kconfig, BAREBOX_COMMON, $(subst barebox-common_,,$@))

barebox-common_oldconfig_: $(STATEDIR)/barebox-common.extract
	@$(call world/kconfig, BAREBOX_COMMON, oldconfig)

# vim: syntax=make