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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# -*-makefile-*-
#
# Copyright (C) 2017 by Sascha Hauer <s.hauer@pengutronix.de>
#
# 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_BAREBOX_MX6) += barebox-mx6
#
# Paths and names
#
BAREBOX_MX6_VERSION := 2018.12.0
BAREBOX_MX6_MD5 := f84d7d3562055c80c3eedce0b14d4a0d
BAREBOX_MX6 := barebox-$(BAREBOX_MX6_VERSION)
BAREBOX_MX6_SUFFIX := tar.bz2
BAREBOX_MX6_DIR := $(BUILDDIR)/barebox-mx6-$(BAREBOX_MX6_VERSION)
BAREBOX_MX6_CONFIG := $(call ptx/in-platformconfigdir, barebox-mx6.config)
BAREBOX_MX6_LICENSE := GPL-2.0
BAREBOX_MX6_URL := $(call barebox-url, BAREBOX_MX6)
BAREBOX_MX6_SOURCE := $(SRCDIR)/$(BAREBOX_MX6).$(BAREBOX_MX6_SUFFIX)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
BAREBOX_MX6_WRAPPER_BLACKLIST := \
TARGET_HARDEN_RELRO \
TARGET_HARDEN_BINDNOW \
TARGET_HARDEN_PIE \
TARGET_DEBUG \
TARGET_BUILD_ID
BAREBOX_MX6_CONF_ENV := KCONFIG_NOTIMESTAMP=1
BAREBOX_MX6_CONF_OPT := $(call barebox-opts, BAREBOX_MX6)
BAREBOX_MX6_MAKE_ENV := $(BAREBOX_MX6_CONF_ENV)
BAREBOX_MX6_MAKE_OPT := $(BAREBOX_MX6_CONF_OPT)
BAREBOX_MX6_IMAGES := images/barebox-embest-imx6s-riotboard.img \
images/barebox-freescale-imx6dl-sabrelite.img \
images/barebox-freescale-imx6q-sabrelite.img \
images/barebox-boundarydevices-imx6q-nitrogen6x-1g.img \
images/barebox-boundarydevices-imx6q-nitrogen6x-2g.img \
images/barebox-boundarydevices-imx6qp-nitrogen6_max.img \
images/barebox-udoo-neo.img
BAREBOX_MX6_IMAGES := $(addprefix $(BAREBOX_MX6_DIR)/,$(BAREBOX_MX6_IMAGES))
ifdef PTXCONF_BAREBOX_MX6
$(BAREBOX_MX6_CONFIG):
@echo
@echo "****************************************************************************"
@echo " Please generate a bareboxconfig with 'ptxdist menuconfig barebox-mx6'"
@echo "****************************************************************************"
@echo
@echo
@exit 1
endif
$(STATEDIR)/barebox-mx6.prepare: $(BAREBOX_MX6_CONFIG)
@$(call targetinfo)
@rm -f "$(BAREBOX_MX6_DIR)/.ptxdist-defaultenv"
@ln -s "$(call ptx/in-platformconfigdir, barebox-mx6-defaultenv)" \
"$(BAREBOX_MX6_DIR)/.ptxdist-defaultenv"
@$(call world/prepare, BAREBOX_MX6)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/barebox-mx6.install:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Targetinstall
# ----------------------------------------------------------------------------
$(STATEDIR)/barebox-mx6.targetinstall:
@$(call targetinfo)
@$(foreach image, $(BAREBOX_MX6_IMAGES), \
install -m 644 \
$(image) $(IMAGEDIR)/$(notdir $(image));)
@$(call touch)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
$(STATEDIR)/barebox-mx6.clean:
@$(call targetinfo)
@$(call clean_pkg, BAREBOX_MX6)
@$(foreach image, $(BAREBOX_MX6_IMAGES), \
rm -fv $(IMAGEDIR)/$(notdir $(image))-mx6;)
# ----------------------------------------------------------------------------
# oldconfig / menuconfig
# ----------------------------------------------------------------------------
barebox-mx6_oldconfig barebox-mx6_menuconfig barebox-mx6_nconfig: $(STATEDIR)/barebox-mx6.extract
@$(call world/kconfig, BAREBOX_MX6, $(subst barebox-mx6_,,$@))
# vim: syntax=make
|