summarylogtreecommitdiffstats
path: root/axoloti-runtime-git.install
blob: d85de5f048aff148f4c85587753c2ffe8362e9be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
compile_firmware() {
    echo '##### compiling firmware... #####'
    cd /opt/axoloti-runtime/platform_linux
    BUILDDIR=/opt/axoloti-runtime/firmware/build ./compile_firmware.sh
}

remove_firmware() {
    rm -rf /opt/axoloti-runtime/firmware/build
}

post_install() {
    compile_firmware
}

post_upgrade() {
    compile_firmware
}

pre_remove() {
    remove_firmware
}