Commit 82bf7c2d authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Move mbedtls into mcuboot-sys

The mbedtls library is used by the binding crate, so move the submodule
into this directory as well.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 6390277f
Loading
Loading
Loading
Loading
+1 −1
Changes for .gitmodules: 1 added line, 1 removed line.
Original line number Diff line number Diff line
[submodule "sim/mbedtls"]
	path = sim/mbedtls
	path = sim/mcuboot-sys/mbedtls
	url = https://github.com/ARMmbed/mbedtls
+7 −7
Changes for sim/mcuboot-sys/build.rs: 7 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -34,12 +34,12 @@ fn main() {

        conf.define("MCUBOOT_USE_MBED_TLS", None);
        conf.define("MBEDTLS_CONFIG_FILE", Some("<config-boot.h>"));
        conf.include("../mbedtls/include");
        conf.file("../mbedtls/library/sha256.c");
        conf.include("mbedtls/include");
        conf.file("mbedtls/library/sha256.c");

        conf.file("../mbedtls/library/rsa.c");
        conf.file("../mbedtls/library/bignum.c");
        conf.file("../mbedtls/library/asn1parse.c");
        conf.file("mbedtls/library/rsa.c");
        conf.file("mbedtls/library/bignum.c");
        conf.file("mbedtls/library/asn1parse.c");
    }
    if sig_ecdsa {
        conf.define("MCUBOOT_SIGN_ECDSA", None);
@@ -65,8 +65,8 @@ fn main() {

    walk_dir("../../boot").unwrap();
    walk_dir("../csupport").unwrap();
    walk_dir("../mbedtls/include").unwrap();
    walk_dir("../mbedtls/library").unwrap();
    walk_dir("mbedtls/include").unwrap();
    walk_dir("mbedtls/library").unwrap();
}

// Output the names of all files within a directory so that Cargo knows when to rebuild.
Compare f2a597fa to f2a597fa

File moved.