Need help building a ROM [SOLVED]

Search This thread

celephrn

Senior Member
  • Nov 30, 2018
    203
    99
    Mexico City
    So I began with this whole endeavour like a week ago and while I've learnt a couple of things I'm still hitting my head against a wall. The issues seem to be regarding the Kernel I'm using, someone mentioned that I'm supposed to be using the source Kerner of the ROM but isn't the Kernel device specific?
    I'm also getting some errors regarding neverallows, a user suggested to ignore them but as far as I understand you should not be doing that.
    So any pointers, suggestions or tips?

    Here are my sources as well as the errors I'm getting.

    Device tree: https://github.com/celepharn/device_xiaomi_vince/tree/havoc-11

    Vendor tree: https://github.com/celepharn/vendor_xiaomi_vince/tree/havoc-11

    Kernel Source: https://github.com/celepharn/kernel_dark_ages_vince

    ROM Source: https://github.com/Havoc-OS

    Haste or Dogbin URL (here are the errors as displayed in the terminal): https://del.dog/wiryckoful.txt
     

    celephrn

    Senior Member
  • Nov 30, 2018
    203
    99
    Mexico City
    i uploaded the compile log on pastebin so it's much easier to read

    on line 493 its where it stop

    also notice on line 499 it say " Please fix the policy "
    Did that, and got error in
    #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
    it's a line in the compiler-gcc.h file located in /havoc/kernel/xiaomi/vince/include/linux
    Any clues on how to proceed? I'm going to try with clang to see if it works.

    Edit: here's the code in said file.
     
    Last edited:

    ineedroot69

    Senior Member
  • Nov 13, 2019
    824
    1
    169
    Did that, and got error in
    #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead."
    it's a line in the compiler-gcc.h file located in /havoc/kernel/xiaomi/vince/include/linux
    Any clues on how to proceed? I'm going to try with clang to see if it works.

    Edit: here's the code in said file.
    usually sepolicy are easy to fix since they point out line # of code and the file location causing issue on your case thou look like you have allow and not allow parameter conflict

    also i forgot to say .te file are viewable as text so gedit works on them
     

    celephrn

    Senior Member
  • Nov 30, 2018
    203
    99
    Mexico City
    usually sepolicy are easy to fix since they point out line # of code and the file location causing issue on your case thou look like you have allow and not allow parameter conflict

    also i forgot to say .te file are viewable as text so gedit works on them
    I did that, then I got some other errors and the suggestion was to switch to clang-proton, which I did. I got to the part of kernel image building only to fail once again.

    These are my updated sources:

    Device tree: https://github.com/celepharn/device_xiaomi_vince/tree/havoc-11

    Vendor tree: https://github.com/celepharn/vendor_xiaomi_vince/tree/havoc-11

    Kernel Source: https://github.com/celepharn/kernel_dark_ages_vince

    ROM Source: https://github.com/Havoc-OS

    Haste or Dogbin URL (here are the errors as displayed in the terminal): https://del.dog/locorfyvas

    I'm certain the issue is building the kernel image, the Image.gz file but don't know how else to proceed, is the kernel I'm using outdated or something?
    I'm also getting issues with lines of qseecomi.h located in /kernel/xiaomi/vince/include/soc/qcom, for example in line 108 stating I should put packed after "struct" but such instruction is not clear to me, perhaps would it be something like this?
    __struct packed qsee_apps_region_info_ireq {
    uint32_t qsee_cmd_id;
    uint32_t addr;
    uint32_t size;
    };