Skip to content

Commit 9216817

Browse files
committed
update scripts for the new file locations
1 parent 4c05ff4 commit 9216817

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

board-manager/Makefile.core

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ COREDIR?=release/v$(COREVERSION)
1818
PARTSDIR?=parts
1919

2020
# subtree of the repository to be included in the archive
21-
SUBTREE=sduino/hardware/sduino/stm8
21+
SUBTREE=sduino/stm8
2222

2323
#
2424
### No user serviceable part below here. ################################

board-manager/Makefile.tools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ endif
1414

1515

1616
# Where to find the tools directory
17-
BASEDIR=../sduino/hardware/sduino
17+
BASEDIR=../sduino
1818

1919
# Ignore all files matching one of these shell patterns:
2020
IGNORE=*~ *bak x build-* *.orig *.rej

board-manager/gen_platform_entry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ list_boards()
4949
{
5050
echo -n " \"boards\": ["
5151
n=0
52-
sed -n "s/.*\.name=//p" ../sduino/hardware/sduino/stm8/boards.txt |\
52+
sed -n "s/.*\.name=//p" ../sduino/stm8/boards.txt |\
5353
while read line; do
5454
if [ $n -ne 0 ]; then echo -n ","; fi
5555
echo

sduino/stm8/sduino.mk

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11

22
MCU_FLAG_NAME = mstm8 -D
33

4-
#ALTERNATE_CORE = sduino
5-
#ARDUINO_VAR_PATH = ../../sduino
6-
#ARDUINO_CORE_PATH = ../../sduino
7-
84

95
all:
106

@@ -63,17 +59,19 @@ endif
6359
ifeq ($(OS),Windows_NT)
6460
ifndef SDCC_PATH
6561
# for Windows always assume the tools to be in this dir tree
66-
SDCC_PATH := $(ARDUINO_DIR)/hardware/sduino/tools/sdcc/bin
62+
SDCC_PATH := $(ARDUINO_DIR)/../tools/sdcc/bin
63+
AVR_TOOLS_DIR = $(ARDUINO_DIR)/../tools/sdcc
6764
endif
68-
SHELL := $(ARDUINO_DIR)/hardware/sduino/tools/win/busybox.exe
65+
SHELL := $(ARDUINO_DIR)/../tools/win/busybox.exe
6966
.SHELLFLAGS=ash -c
70-
SIZE := $(ARDUINO_DIR)/hardware/sduino/tools/wrapper/sdsize.sh
71-
# PATH := $(realpath $(ARDUINO_DIR)/hardware/sduino/tools/win):$(PATH)
67+
SIZE := $(ARDUINO_DIR)/../tools/wrapper/sdsize.sh
68+
# PATH := $(realpath $(ARDUINO_DIR)/../tools/win):$(PATH)
7269
else
7370
# Linux (and Mac): expect SDCC to be in /opt/sdcc
7471
ifndef SDCC_PATH
7572
# for Windows always assume the tools to be in this dir tree
7673
SDCC_PATH := /opt/sdcc/bin
74+
AVR_TOOLS_DIR = /opt/sdcc
7775
endif
7876
endif
7977

@@ -85,15 +83,21 @@ OVERRIDE_EXECUTABLES=yes
8583
SIZE ?= /usr/bin/size
8684

8785

86+
# avoid using the regular paths starting at $(ARDUINO_DIR)/hardware/$(VENDOR)
87+
# as our makefile is now part of the core archive
88+
ARDUINO_VERSION = 186
89+
ALTERNATE_CORE = sduino
90+
ALTERNATE_CORE_PATH = $(ARDUINO_DIR)
91+
8892
ARDUINO_SKETCHBOOK = /tmp # temporarly, to prevent usage of the real libs
8993
ARDMK_VENDOR = sduino
9094
ARCHITECTURE = stm8
9195
CPPFLAGS += -Ddouble=float -DUSE_STDINT \
92-
-I. -I$(ARDUINO_DIR)/hardware/sduino/stm8/STM8S_StdPeriph_Driver/inc \
96+
-I. -I$(ARDUINO_DIR)/STM8S_StdPeriph_Driver/inc \
9397
-I/opt/sdcc/share/sdcc/include/
9498
#CFLAGS = -I ../STM8S_StdPeriph_Driver/inc
9599
#LDFLAGS = --out-fmt-elf
96-
LDFLAGS += -L $(ARDUINO_DIR)/hardware/sduino/stm8/STM8S_StdPeriph_Driver/lib -L/opt/sdcc/share/sdcc/lib/stm8
100+
LDFLAGS += -L $(ARDUINO_DIR)/STM8S_StdPeriph_Driver/lib -L/opt/sdcc/share/sdcc/lib/stm8
97101

98102

99103

test/make-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
CURDIR=$(pwd)
44
SRCREV=$(git describe --tags --match="v*" --dirty)
55
LOGFILE=${CURDIR}/logs/test-${SRCREV}.log
6-
BASEDIR=../sduino/hardware/sduino/stm8/libraries/
6+
BASEDIR=../sduino/stm8/libraries/
77

88
# count the number of CPUs and use them for parallel compiling
99
THREADS=$(grep processor /proc/cpuinfo |wc -l)

0 commit comments

Comments
 (0)