Skip to content

Abort Build flow if compilation fails #4

@danascape

Description

@danascape
  • Currently, whenever the compilation fails, the script still executes and tries to create a distribution package.

    HOSTCC scripts/dtc/livetree.o
    CC kernel/bounds.s
    UPD include/generated/timeconst.h
    /usr/bin/as: unrecognized option '-EL'
    clang: error: assembler command failed with exit code 1 (use -v to see invocation)
    HOSTCC scripts/dtc/treesource.o
    make[3]: *** [../scripts/Makefile.build:339: scripts/mod/empty.o] Error 1
    make[2]: *** [../scripts/Makefile.build:642: scripts/mod] Error 2
    make[2]: *** Waiting for unfinished jobs....
    YACC scripts/genksyms/parse.tab.h
    HOSTCC scripts/dtc/srcpos.o
    HOSTCC scripts/dtc/checks.o
    HOSTCC scripts/dtc/util.o
    LEX scripts/dtc/dtc-lexer.lex.c
    YACC scripts/dtc/dtc-parser.tab.h
    YACC scripts/dtc/dtc-parser.tab.c
    HOSTCC scripts/genksyms/parse.tab.o
    UPD include/generated/bounds.h
    HOSTCC scripts/genksyms/lex.lex.o
    CC arch/arm64/kernel/asm-offsets.s
    HOSTCC scripts/dtc/dtc-parser.tab.o
    HOSTCC scripts/dtc/dtc-lexer.lex.o
    HOSTLD scripts/dtc/dtc
    HOSTLD scripts/genksyms/genksyms
    make[1]: *** [/mnt/vispero/sb/sm6350/Makefile:1266: scripts] Error 2
    make[1]: *** Waiting for unfinished jobs....
    In file included from ../arch/arm64/kernel/asm-offsets.c:25:
    In file included from ../include/linux/kvm_host.h:39:
    In file included from ../arch/arm64/include/asm/kvm_host.h:42:
    In file included from ../include/kvm/arm_pmu.h:21:
    In file included from ../include/linux/perf_event.h:57:
    In file included from ../include/linux/cgroup.h:28:
    ../include/linux/cgroup-defs.h:509:16: warning: field 'cgrp' with variable sized type 'struct cgroup' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end]
    struct cgroup cgrp;
    ^
    1 warning generated.
    UPD include/generated/asm-offsets.h
    CALL ../scripts/checksyscalls.sh
    make[1]: Leaving directory '/mnt/vispero/sb/sm6350/out'
    make: *** [Makefile:155: sub-make] Error 2
    sworkflow: Installing modules
    make[1]: Entering directory '/mnt/vispero/sb/sm6350/out'
    arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
    arch/arm64/Makefile:48: Detected assembler with broken .inst; disassembly will be unreliable
    DEPMOD 4.19.322-lineageos-ge0dfbd0595f7
    Warning: modules_install: missing 'System.map' file. Skipping depmod.
    make[1]: Leaving directory '/mnt/vispero/sb/sm6350/out'
    sworkflow: Checking kernel image!
    error: Build failed
    sworkflow: Cloning Anykernel3
    sworkflow: AK3 already present
    warning: Skipping Clone
    Cleaned Up.
    cp: cannot stat '../out/dist/*': No such file or directory
    Creating ZIP: Stormbreaker-4.19-2.0-20241127-1342.zip
    adding: tools/ (stored 0%)
    adding: tools/busybox (deflated 37%)
    adding: tools/ak3-core.sh (deflated 73%)
    adding: tools/magiskpolicy (deflated 28%)
    adding: tools/magiskboot (deflated 34%)
    adding: META-INF/ (stored 0%)
    adding: META-INF/com/ (stored 0%)
    adding: META-INF/com/google/ (stored 0%)
    adding: META-INF/com/google/android/ (stored 0%)
    adding: META-INF/com/google/android/update-binary (deflated 71%)
    adding: META-INF/com/google/android/updater-script (stored 0%)
    adding: anykernel.sh (deflated 44%)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions