7
7
# Remember to bump the version when anything changes in this
8
8
# directory.
9
9
NERVES_CONFIG_SOURCE =
10
- NERVES_CONFIG_VERSION = 0.5
10
+ NERVES_CONFIG_VERSION = 0.6
11
11
12
12
NERVES_CONFIG_DEPENDENCIES = erlinit erlang host-erlang-relx host-fwup openssl
13
13
14
14
NERVES_CONFIG_PACKAGE_DIR = $(BR2_EXTERNAL_NERVES_PATH ) /package/nerves-config
15
15
NERVES_CONFIG_ERLANG_RELEASE_DIR = $(TARGET_DIR ) /srv/erlang
16
16
17
- NERVES_CONFIG_EXTRA_APPS += stdlib
18
- NERVES_CONFIG_ALL_APPS = $(subst $(space ) ,$(comma ) ,$(call qstrip,$(BR2_PACKAGE_NERVES_CONFIG_APPS ) $(NERVES_CONFIG_EXTRA_APPS ) ) )
19
-
20
17
define NERVES_CONFIG_BUILD_CMDS
21
18
# Create the relx configuration file
22
- m4 -DAPPS="$(NERVES_CONFIG_ALL_APPS ) " \
23
- $(NERVES_CONFIG_PACKAGE_DIR ) /relx.config.m4 > $(@D ) /relx.config
19
+ m4 $(NERVES_CONFIG_PACKAGE_DIR ) /relx.config.m4 > $(@D ) /relx.config
24
20
25
21
# Create the vm.args file for starting the Erlang runtime
26
- m4 -DDISTRIBUTION=$(BR2_PACKAGE_NERVES_CONFIG_DISTRIBUTION ) \
27
- -DSNAME=$(BR2_PACKAGE_NERVES_CONFIG_SNAME ) \
28
- -DCOOKIE=$(BR2_PACKAGE_NERVES_CONFIG_COOKIE ) \
29
- $(NERVES_CONFIG_PACKAGE_DIR ) /vm.args.m4 > $(@D ) /vm.args
22
+ m4 $(NERVES_CONFIG_PACKAGE_DIR ) /vm.args.m4 > $(@D ) /vm.args
30
23
31
24
# Run relx to create a sample release. Real projects will have
32
25
# their own relx.config scripts and be in a separate repo, but
33
26
# this release is a good one for playing around with Nerves.
34
27
NERVES_SDK_SYSROOT=$(HOST_DIR ) $(RELX ) $(NERVES_CONFIG_RELX_LIBDIRS ) --vm_args $(@D ) /vm.args -c $(@D ) /relx.config
35
28
endef
36
29
37
- ifeq ($(BR2_PACKAGE_NERVES_CONFIG_SPECIFY_ERLINIT_CONF ) ,y)
38
- define NERVES_CONFIG_INSTALL_ERLINIT
39
- cp $(BR2_PACKAGE_NERVES_CONFIG_ERLINIT_CONF_PATH ) $(TARGET_DIR ) /etc/erlinit.config
40
- endef
41
- endif
42
-
43
30
define NERVES_CONFIG_INSTALL_RELEASE
44
31
# Copy the release that starts the shell over to the target
45
32
rm -fr $(NERVES_CONFIG_ERLANG_RELEASE_DIR )
@@ -49,14 +36,13 @@ endef
49
36
50
37
define NERVES_CONFIG_INSTALL_TARGET_CMDS
51
38
$(NERVES_CONFIG_INSTALL_RELEASE )
52
- $(NERVES_CONFIG_INSTALL_ERLINIT )
53
39
endef
54
40
55
41
# This is tricky. We want the squashfs created by Buildroot to have everything
56
- # except for the OTP release. The squashfs tools can only append to filesystems,
57
- # so we'll want to append OTP releases frequently. If it were possible to modify
58
- # a squashfs after the fact, then we could skip this part, but this isn't possible
59
- # on non-Linux platforms (i.e. no fakeroot).
42
+ # except for the OTP release. The squashfs tools can only append to
43
+ # filesystems, so we'll want to append OTP releases frequently. If it were
44
+ # possible to modify a squashfs after the fact, then we could skip this part,
45
+ # but this isn't possible on non-Linux platforms (i.e. no fakeroot).
60
46
ROOTFS_SQUASHFS_ARGS += -e srv
61
47
62
48
$(eval $(generic-package))
0 commit comments