Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/scripts/image-builder.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#
# Core Flight Software CMake / GNU make wrapper
#
# ABOUT THIS MAKEFILE:
# This defines the configuration targets for the multi-target build
# It is moved to a separate file to isolate this from the other logic
#
# This should reside in the same top-level directory as the main Makefile
#
# This file may define extra logic or dependencies for a given target


# This converts the staging directory from "make install" into a virtual
# filesystem that can be mounted in a VM or container
IMAGE_TYPE ?= ext4
IMAGE_LABEL ?= cFS
TARBALL_DIR ?= .
DEPLOY_DIR ?= .

IMAGE_NAME = cfs-$(CPUNAME)
TARFS_FILE = $(IMAGE_NAME).tar.xz
IMAGE_FILE = $(IMAGE_NAME).$(IMAGE_TYPE)
IMAGE_SIZE = 128M

IMAGE_SET += $(DEPLOY_DIR)/$(CONFIG)-cfs-cpu1.$(IMAGE_TYPE).xz
IMAGE_SET += $(DEPLOY_DIR)/$(CONFIG)-cfs-cpu2.$(IMAGE_TYPE).xz

# generic rule for creating an ext4 image from the tarball
$(DEPLOY_DIR)/$(CONFIG)-cfs-%.$(IMAGE_TYPE): $(TARBALL_DIR)/$(CONFIG)-%-bin.tar.xz
rm -f "$(@)"
/usr/sbin/mke2fs -t "$(IMAGE_TYPE)" -L "$(IMAGE_LABEL)" -d "$(<)" "$(@)" $(IMAGE_SIZE)

$(DEPLOY_DIR)/%.xz: $(DEPLOY_DIR)/%
xz -k "$(<)"

.PHONY: all

all: $(IMAGE_SET)

# do not auto-delete the artifacts
.PRECIOUS: $(DEPLOY_DIR)/%.xz
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
Makefile
build
/sample_defs
.DS_Store
build*/

67 changes: 49 additions & 18 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,44 +1,75 @@
[submodule "cfe"]
path = cfe
url = https://github.com/nasa/cFE.git
branch = main
[submodule "osal"]
path = osal
url = https://github.com/nasa/osal.git
branch = main
[submodule "psp"]
path = psp
url = https://github.com/nasa/PSP.git
branch = main
[submodule "apps/ci_lab"]
path = apps/ci_lab
url = https://github.com/nasa/ci_lab.git
branch = main
[submodule "apps/to_lab"]
path = apps/to_lab
url = https://github.com/nasa/to_lab.git
[submodule "apps/sch_lab"]
path = apps/sch_lab
url = https://github.com/nasa/sch_lab.git
[submodule "apps/sample_app"]
path = apps/sample_app
url = https://github.com/nasa/sample_app.git
branch = main
[submodule "apps/sample_lib"]
[submodule "libs/sample_lib"]
path = libs/sample_lib
url = https://github.com/nasa/sample_lib.git
branch = main
[submodule "apps/sch_lab"]
path = apps/sch_lab
url = https://github.com/nasa/sch_lab.git
branch = main
[submodule "apps/to_lab"]
path = apps/to_lab
url = https://github.com/nasa/to_lab.git
branch = main
[submodule "tools/cFS-GroundSystem"]
path = tools/cFS-GroundSystem
url = https://github.com/nasa/cFS-GroundSystem.git
branch = main
[submodule "tools/elf2cfetbl"]
path = tools/elf2cfetbl
url = https://github.com/nasa/elf2cfetbl.git
branch = main
[submodule "tools/tblCRCTool"]
path = tools/tblCRCTool
url = https://github.com/nasa/tblCRCTool.git
branch = main
[submodule "tools/eds"]
path = tools/eds
url = https://github.com/nasa/EdsLib.git
[submodule "apps/cf"]
path = apps/cf
url = https://github.com/nasa/CF.git
[submodule "apps/cs"]
path = apps/cs
url = https://github.com/nasa/CS.git
[submodule "apps/ds"]
path = apps/ds
url = https://github.com/nasa/DS.git
[submodule "apps/fm"]
path = apps/fm
url = https://github.com/nasa/FM.git
[submodule "apps/hk"]
path = apps/hk
url = https://github.com/nasa/HK.git
[submodule "apps/hs"]
path = apps/hs
url = https://github.com/nasa/HS.git
[submodule "apps/lc"]
path = apps/lc
url = https://github.com/nasa/LC.git
[submodule "apps/md"]
path = apps/md
url = https://github.com/nasa/MD.git
[submodule "apps/mm"]
path = apps/mm
url = https://github.com/nasa/MM.git
[submodule "apps/sbn"]
path = apps/sbn
url = https://github.com/nasa/SBN.git
[submodule "apps/sc"]
path = apps/sc
url = https://github.com/nasa/SC.git
[submodule "tools/cfs-cosmos-plugin"]
path = tools/cfs-cosmos-plugin
url = https://github.com/nasa/cfs-cosmos-plugin.git
[submodule "tools/commandline-tools"]
path = tools/commandline-tools
url = https://github.com/nasa/cfs-commandline-tools.git
5 changes: 1 addition & 4 deletions .lgtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ extraction:
cpp:
index:
build_command:
- "cp cfe/cmake/Makefile.sample Makefile"
- "cp -r cfe/cmake/sample_defs sample_defs"
- "make OMIT_DEPRECATED=true prep"
- "make"
- "make native_std.install"

Loading
Loading