Skip to content

Commit af4c388

Browse files
committed
Updated oresat-gen-fw-files invocation
And also updated the oresat-configs install instructions. In the latest version of oresat-configs the invocation for oresat-gen-fw-files changed slightly, I didn't realize it was being used as part of the build scripts here. This fixes up these build scripts to use the new invocation, which is changing the argument `oresat0.5` to `--oresat 0.5`.
1 parent dff1094 commit af4c388

File tree

11 files changed

+22
-33
lines changed

11 files changed

+22
-33
lines changed

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,8 @@ Tools required:
8383
* srecord
8484
* oresat-configs
8585

86-
To install oresat-configs:
87-
* `$ git clone https://github.com/oresat/oresat-configs`
88-
* `$ cd oresat-configs`
89-
* `$ pip install -r requirements.txt`
90-
* `$ ./build_and_install.sh`
86+
To install oresat-configs:
87+
* `$ pip install oresat-configs`
9188

9289
PLEASE NOTE: If you use OpenOCD, the latest "official" release of OpenOCD in
9390
package managers is several years old. You MUST build it from source for it

src/f0/app_adcs/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ BOARDDIR = $(PROJ_ROOT)/boards/$(BOARD)
108108

109109
ODDIR := $(APP_ROOT)/od
110110
ifeq ($(ORESAT),)
111-
ORESAT = oresat0.5
111+
ORESAT = 0.5
112112
endif
113113
# generate OD.c/OD.h from oresat-configs
114-
$(shell oresat-gen-fw-files $(ORESAT) imu -d $(ODDIR))
114+
$(shell oresat-gen-fw-files --oresat $(ORESAT) imu -d $(ODDIR))
115115
# add them
116116
ALLCSRC += $(ODDIR)/OD.c
117117
ALLINC += $(ODDIR)

src/f0/app_battery/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ ifeq ($(USE_BOOTLOADER),)
112112
endif
113113

114114
ifeq ($(ORESAT),)
115-
ORESAT = oresat0.5
115+
ORESAT = 0.5
116116
endif
117117

118118
# generate OD.c/OD.h from oresat-configs
119-
$(shell oresat-gen-fw-files $(ORESAT) battery -d $(ODDIR))
119+
$(shell oresat-gen-fw-files --oresat $(ORESAT) battery -d $(ODDIR))
120120
# add them
121121
ALLCSRC += $(ODDIR)/OD.c
122122
ALLINC += $(ODDIR)

src/f0/app_devboard/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ ifeq ($(USE_BOOTLOADER),)
112112
endif
113113

114114
ifeq ($(ORESAT),)
115-
ORESAT = oresat0.5
115+
ORESAT = 0.5
116116
endif
117117

118118
# generate OD.c/OD.h from oresat-configs
119-
$(shell oresat-gen-fw-files $(ORESAT) base -d $(ODDIR))
119+
$(shell oresat-gen-fw-files --oresat $(ORESAT) base -d $(ODDIR))
120120
# add them
121121
ALLCSRC += $(ODDIR)/OD.c
122122
ALLINC += $(ODDIR)

src/f0/app_protocard/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ ifeq ($(USE_BOOTLOADER),)
112112
endif
113113

114114
ifeq ($(ORESAT),)
115-
ORESAT = oresat0.5
115+
ORESAT = 0.5
116116
endif
117117

118118
# generate OD.c/OD.h from oresat-configs
119-
$(shell oresat-gen-fw-files $(ORESAT) base -d $(ODDIR))
119+
$(shell oresat-gen-fw-files --oresat $(ORESAT) base -d $(ODDIR))
120120
# add them
121121
ALLCSRC += $(ODDIR)/OD.c
122122
ALLINC += $(ODDIR)

src/f0/app_solar/Makefile

+2-9
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ endif
8282
# Project, target, sources and paths
8383
#
8484

85-
ifeq ($(ORESAT),)
86-
ORESAT = oresat0.5
87-
endif
88-
8985
# Define project name here
9086
PROJECT = app_solar
9187

@@ -116,11 +112,11 @@ ifeq ($(USE_BOOTLOADER),)
116112
endif
117113

118114
ifeq ($(ORESAT),)
119-
ORESAT = oresat0.5
115+
ORESAT = 0.5
120116
endif
121117

122118
# generate OD.c/OD.h from oresat-configs
123-
$(shell oresat-gen-fw-files $(ORESAT) solar -d $(ODDIR))
119+
$(shell oresat-gen-fw-files --oresat $(ORESAT) solar -d $(ODDIR))
124120
# add them
125121
ALLCSRC += $(ODDIR)/OD.c
126122
ALLINC += $(ODDIR)
@@ -226,9 +222,6 @@ include $(TOOLCHAIN)/toolchain.mk
226222
# Custom rules
227223
#
228224

229-
xxd:
230-
xxd -i build/$(PROJECT).crc32.bin > build/$(PROJECT).crc32.bin.h
231-
232225
#
233226
# Custom rules
234227
##############################################################################

src/f4/app_cantest/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ ODDIR := $(APP_ROOT)/od
107107
BOARDDIR = $(PROJ_ROOT)/boards/$(BOARD)
108108

109109
ifeq ($(ORESAT),)
110-
ORESAT = oresat0.5
110+
ORESAT = 0.5
111111
endif
112112

113113
# generate OD.c/OD.h from oresat-configs
114-
$(shell oresat-gen-fw-files $(ORESAT) base -d $(ODDIR))
114+
$(shell oresat-gen-fw-files --oresat $(ORESAT) base -d $(ODDIR))
115115
# add them
116116
ALLCSRC += $(ODDIR)/OD.c
117117
ALLINC += $(ODDIR)

src/f4/app_control/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ ODDIR := $(APP_ROOT)/od
107107
BOARDDIR = $(PROJ_ROOT)/boards/$(BOARD)
108108

109109
ifeq ($(ORESAT),)
110-
ORESAT = oresat0.5
110+
ORESAT = 0.5
111111
endif
112112

113113
# generate OD.c/OD.h from oresat-configs
114-
$(shell oresat-gen-fw-files $(ORESAT) base -d $(ODDIR))
114+
$(shell oresat-gen-fw-files --oresat $(ORESAT) base -d $(ODDIR))
115115
# add them
116116
ALLCSRC += $(ODDIR)/OD.c
117117
ALLINC += $(ODDIR)

src/f4/app_devboard/Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,17 @@ ODDIR := $(APP_ROOT)/od
107107
BOARDDIR = $(PROJ_ROOT)/boards/$(BOARD)
108108

109109
ifeq ($(ORESAT),)
110-
ORESAT = oresat0.5
110+
ORESAT = 0.5
111111
endif
112112

113113
# generate OD.c/OD.h from oresat-configs
114-
$(shell oresat-gen-fw-files $(ORESAT) base -d $(ODDIR))
114+
$(shell oresat-gen-fw-files --oresat $(ORESAT) base -d $(ODDIR))
115115
# add them
116116
ALLCSRC += $(ODDIR)/OD.c
117117
ALLINC += $(ODDIR)
118118

119119
# Project specific files.
120120
include $(PROJ_SRC)/oresat.mk
121-
include $(PROJ_SRC)/CO_master.mk
122121

123122
# Licensing files.
124123
include $(CHIBIOS)/os/license/license.mk

src/l4/app_devboard/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ ODDIR := $(APP_ROOT)/od
107107
BOARDDIR = $(PROJ_ROOT)/boards/$(BOARD)
108108

109109
ifeq ($(ORESAT),)
110-
ORESAT = oresat0.5
110+
ORESAT = 0.5
111111
endif
112112

113113
# generate OD.c/OD.h from oresat-configs
114-
$(shell oresat-gen-fw-files $(ORESAT) base -d $(ODDIR))
114+
$(shell oresat-gen-fw-files --oresat $(ORESAT) base -d $(ODDIR))
115115
# add them
116116
ALLCSRC += $(ODDIR)/OD.c
117117
ALLINC += $(ODDIR)

src/l4/app_devboard_cpp/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ DEPDIR := $(APP_ROOT)/.dep
107107
BOARDDIR = $(PROJ_ROOT)/boards/$(BOARD)
108108

109109
ifeq ($(ORESAT),)
110-
ORESAT = oresat0.5
110+
ORESAT = 0.5
111111
endif
112112

113113
# generate OD.c/OD.h from oresat-configs
114-
$(shell oresat-gen-fw-files $(ORESAT) base -d $(ODDIR))
114+
$(shell oresat-gen-fw-files --oresat $(ORESAT) base -d $(ODDIR))
115115
# add them
116116
ALLCSRC += $(ODDIR)/OD.c
117117
ALLINC += $(ODDIR)

0 commit comments

Comments
 (0)