Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c044283b authored by Yi-Yo Chiang's avatar Yi-Yo Chiang
Browse files

Add toolbox_ramdisk

Intended to be installed in the generic ramdisk.
This may be executed in init_first_stage where there is no dynamic
linker, so it must be -static linked.

Bug: 383081955
Test: Presubmit
Test: Verify kernel modules are loaded in klog
Change-Id: I1b4e25970c35e6c0cce8be0edeab909e18ae46ba
parent 97f18afa
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -84,3 +84,22 @@ cc_binary {
    vendor: true,
    defaults: ["toolbox_binary_defaults"],
}

// This one is installed in the generic ramdisk, and can be executed during
// init-first-stage.
// As there are no dynamic linker available, this must be statically linked.
cc_binary {
    name: "toolbox_ramdisk",
    defaults: ["toolbox_binary_defaults"],
    ramdisk: true,
    static_executable: true,
    system_shared_libs: [],
    exclude_shared_libs: [
        "libbase",
        "liblog",
    ],
    static_libs: [
        "libbase",
        "liblog",
    ],
}