Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Astro
firmware
Compare revisions
master to master
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
astro/firmware
Select target project
No results found
master
Select Git revision
Swap
Target
card10/firmware
Select target project
card10/firmware
annejan/firmware
astro/firmware
fpletz/firmware
gerd/firmware
fleur/firmware
swym/firmware
l/firmware
uberardy/firmware
wink/firmware
madonius/firmware
mot/firmware
filid/firmware
q3k/firmware
hauke/firmware
Woazboat/firmware
pink/firmware
mossmann/firmware
omniskop/firmware
zenox/firmware
trilader/firmware
Danukeru/firmware
shoragan/firmware
zlatko/firmware
sistason/firmware
datenwolf/firmware
bene/firmware
amedee/firmware
martinling/firmware
griffon/firmware
chris007/firmware
adisbladis/firmware
dbrgn/firmware
jelly/firmware
rnestler/firmware
mh/firmware
ln/firmware
penguineer/firmware
monkeydom/firmware
jens/firmware
jnaulty/firmware
jeffmakes/firmware
marekventur/firmware
pete/firmware
h2obrain/firmware
DooMMasteR/firmware
jackie/firmware
prof_r/firmware
Draradech/firmware
Kartoffel/firmware
hinerk/firmware
abbradar/firmware
JustTB/firmware
LuKaRo/firmware
iggy/firmware
ente/firmware
flgr/firmware
Lorphos/firmware
matejo/firmware
ceddral7/firmware
danb/firmware
joshi/firmware
melle/firmware
fitch/firmware
deurknop/firmware
sargon/firmware
markus/firmware
kloenk/firmware
lucaswerkmeister/firmware
derf/firmware
meh/firmware
dx/card10-firmware
torben/firmware
yuvadm/firmware
AndyBS/firmware
klausdieter1/firmware
katzenparadoxon/firmware
xiretza/firmware
ole/firmware
techy/firmware
thor77/firmware
TilCreator/firmware
fuchsi/firmware
dos/firmware
yrlf/firmware
PetePriority/firmware
SuperVirus/firmware
sur5r/firmware
tazz/firmware
Alienmaster/firmware
flo_h/firmware
baldo/firmware
mmu_man/firmware
Foaly/firmware
sodoku/firmware
Guinness/firmware
ssp/firmware
led02/firmware
Stormwind/firmware
arist/firmware
coon/firmware
mdik/firmware
pippin/firmware
royrobotiks/firmware
zigot83/firmware
mo_k/firmware
106 results
master
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (8)
default.nix
· 5d0744d0
Astro
authored
5 years ago
5d0744d0
openocd.nix
· 080ee94e
Astro
authored
5 years ago
080ee94e
nix: build bootloader
· 0b161309
Astro
authored
5 years ago
0b161309
feat(ci): build with nixos
· bb000950
Astro
authored
5 years ago
bb000950
chore(nix): update to meson/ninja build system
· cb221011
Astro
authored
5 years ago
cb221011
fix(nix): fetch micropython submodule in nix
· 8af5af05
Astro
authored
5 years ago
should fix CI
8af5af05
fix(nix): remove submodule dir first
· e4fc3f87
Astro
authored
5 years ago
e4fc3f87
chore(nix): update micropython sha256
· 138a724b
Astro
authored
5 years ago
138a724b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+7
-2
7 additions, 2 deletions
.gitlab-ci.yml
default.nix
+23
-0
23 additions, 0 deletions
default.nix
nix/firmware.nix
+27
-0
27 additions, 0 deletions
nix/firmware.nix
nix/openocd.nix
+16
-0
16 additions, 0 deletions
nix/openocd.nix
shell.nix
+5
-0
5 additions, 0 deletions
shell.nix
with
78 additions
and
2 deletions
.gitlab-ci.yml
View file @
138a724b
image
:
"
debian"
build
:
stage
:
build
image
:
debian
before_script
:
-
echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
-
apt update -qq
...
...
@@ -11,3 +10,9 @@ build:
script
:
-
./bootstrap.sh
-
ninja -C build/
nix
:
stage
:
build
image
:
nixos/nix:latest
script
:
-
nix-build
This diff is collapsed.
Click to expand it.
default.nix
0 → 100644
View file @
138a724b
{
pkgs
?
import
<
nixpkgs
>
{},
}:
with
pkgs
;
let
firmware
=
callPackage
./nix/firmware.nix
{};
openocd
=
callPackage
./nix/openocd.nix
{
};
in
{
openocd
=
stdenv
.
mkDerivation
{
name
=
"openocd-card10"
;
src
=
./openocd
;
phases
=
[
"unpackPhase"
"installPhase"
];
buildInputs
=
[
openocd
makeWrapper
];
installPhase
=
''
mkdir -p $out/bin $out/share
cp -ar . $out/share/openocd
makeWrapper
${
openocd
}
/bin/openocd $out/bin/openocd-card10 \
--add-flags "-f $out/share/openocd/scripts/interface/cmsis-dap.cfg" \
--add-flags "-f $out/share/openocd/scripts/target/max32665.cfg"
''
;
};
inherit
firmware
;
}
This diff is collapsed.
Click to expand it.
nix/firmware.nix
0 → 100644
View file @
138a724b
{
fetchFromGitHub
,
pkgsCross
,
python3
,
ninja
,
meson
,
gcc
}:
let
micropython
=
fetchFromGitHub
{
owner
=
"micropython"
;
repo
=
"micropython"
;
rev
=
"62f004ba424920a01e60c7a9a064b8ec9cd69c12"
;
sha256
=
"0bhbdw4zlk4yr798x8k9pk3q85xnbqj1f2362l65wv1815ajzx5l"
;
fetchSubmodules
=
true
;
};
in
pkgsCross
.
armhf-embedded
.
stdenv
.
mkDerivation
{
name
=
"card10"
;
src
=
./..
;
postPatch
=
''
substituteInPlace card10-cross.ini \
--replace arm-none-eabi arm-none-eabihf
rmdir lib/micropython/micropython
ln -s
${
micropython
}
/ lib/micropython/micropython
''
;
nativeBuildInputs
=
[
ninja
meson
python3
gcc
];
mesonFlags
=
[
"--cross-file card10-cross.ini"
"--optimization s"
];
ninjaFlags
=
[
"-v"
];
}
This diff is collapsed.
Click to expand it.
nix/openocd.nix
0 → 100644
View file @
138a724b
{
openocd
,
fetchFromGitHub
,
autoreconfHook
,
git
,
which
}:
openocd
.
overrideAttrs
(
oa
:
{
src
=
fetchFromGitHub
{
owner
=
"maximmbed"
;
repo
=
"openocd"
;
rev
=
"e71ac88c9dbfa4ee1405d7a86376119dcc887ed1"
;
sha256
=
"18yc1wyclmjxqg6jilfcm60hi01pgqc4dilsmksqbhg23m6x4ycw"
;
fetchSubmodules
=
true
;
};
nativeBuildInputs
=
oa
.
nativeBuildInputs
++
[
autoreconfHook
git
which
];
enableParallelBuilding
=
true
;
})
This diff is collapsed.
Click to expand it.
shell.nix
0 → 100644
View file @
138a724b
with
import
<
nixpkgs
>
{};
pkgsCross
.
armhf-embedded
.
stdenv
.
mkDerivation
{
name
=
"env"
;
buildInputs
=
[
ninja
meson
python3
gcc
bashInteractive
];
}
This diff is collapsed.
Click to expand it.