-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (32 loc) · 1.09 KB
/
Makefile
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
PREFIX=ecovec24
TOOLCHAIN=sh4-buildroot-linux-gnu_sdk-buildroot.tar.gz
EXTERNALS=../br2external ../br2autosshkey
DEFCONFIG=../br2external/board/ecovec24/buildroot.config
.PHONY: buildroot \
clean \
clearstuff \
shell \
bootstrap
all: buildroot copy_outputs upload
bootstrap.stamp:
git submodule init
git submodule update
touch bootstrap.stamp
./br2secretsauce/common.mk: bootstrap.stamp
include ./br2secretsauce/common.mk
linux_rebuild:
# $(call update_git_package,linux,ecovec24)
$(MAKE) -C buildroot/ $(BR2ARGS) linux-rebuild
clean:
$(MAKE) -C buildroot $(BR2ARGS) clean
clearstuff:
rm -rf buildroot/output/build/nodectrl-dev/ buildroot/dl/nodectrl/
rm -rf buildroot/output/build/tlwbe_heartbeat-dev/ buildroot/dl/tlwbe_heartbeat/
shell:
ssh-keygen -f "/home/daniel/.ssh/known_hosts" -R "ecovec24"
ssh -i buildroot/output/sshkeys/sh4life sh4life@ecovec24
copy_outputs:
cp buildroot/output/images/uImage $(OUTPUTS)/ecovec24-u-boot.img
cp buildroot/output/images/rootfs.squashfs $(OUTPUTS)/ecovec24-rootfs.squashfs
upload:
$(call upload_to_tftp_with_scp,$(BUILDROOT_PATH)/output/images/uImage)