<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 19, 2021 at 3:07 PM Christian Mauderer <<a href="mailto:oss@c-mauderer.de">oss@c-mauderer.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 19/02/2021 19:52, junkes wrote:<br>
> On 2021-02-19 18:40, Gedare Bloom wrote:<br>
>> Advise how you built. We are starting to see some bitrot breakage in<br>
>> configuration. The cutover to waf will come soon, and I don't expect<br>
>> rtems6 release to support autoconf build of rtems itself. I suggest<br>
>> you change over to waf build of rtems kernel if you haven't yet.<br>
> <br>
> I use a build system from Christian Maurer:<br>
> <a href="https://gitlab.com/c-mauderer/rtems-simulation-environment" rel="noreferrer" target="_blank">https://gitlab.com/c-mauderer/rtems-simulation-environment</a><br>
<br>
It's not really a build system but only a Makefile that collects the <br>
commands so that I can run some quick tests. Please also note that this <br>
is no official repo. So don't be surprised if it changes or breaks.<br></blockquote><div><br></div><div>This is exactly why I haven't been prone to share my rtems-cron-helpers</div><div>which includes a build_bsp script which makes waf and autoconf look the</div><div>same from the command line. It also can run the tester. Saves me a lot of</div><div>keyboarding :)</div><div><br></div><div>--joel </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> <br>
> define build_toolchain<br>
> rm -rf $(RSB)/rtems/build<br>
> cd $(RSB)/rtems && ../source-builder/sb-set-builder \<br>
> --prefix=$(PREFIX) \<br>
> --log=$(RSB)/b-rsb-toolchain-$(1).log \<br>
> $(RTEMS_VERSION)/rtems-$(1)<br>
> rm -rf $(RSB)/rtems/build<br>
> <br>
> define build_bsp<br>
> cd $(SRC_RTEMS) && ./waf clean || true<br>
> cd $(SRC_RTEMS) && ./waf bsp_defaults --rtems-bsps=$(1)/$(2) > <br>
> config.ini<br>
> cd $(SRC_RTEMS) && sed -i \<br>
> -e "s|RTEMS_POSIX_API = False|RTEMS_POSIX_API = True|" \<br>
> -e "s|CLOCK_DRIVER_USE_FAST_IDLE = <br>
> True|CLOCK_DRIVER_USE_FAST_IDLE = False|" \<br>
> -e "s|BUILD_TESTS = False|BUILD_TESTS = True|" \<br>
> config.ini<br>
> cd $(SRC_RTEMS) && ./waf configure --prefix=$(PREFIX)<br>
> cd $(SRC_RTEMS) && ./waf<br>
> cd $(SRC_RTEMS) && ./waf install<br>
> endef<br>
> <br>
> define build_libbsd<br>
> rm -rf $(SRC_LIBBSD)/build<br>
> cd $(SRC_LIBBSD) && ./waf configure \<br>
> --prefix=$(PREFIX) \<br>
> --rtems-bsps=$(1)/$(2) \<br>
> --enable-warnings \<br>
> --optimization=2 \<br>
> --rtems-version=$(RTEMS_VERSION)<br>
> cd $(SRC_LIBBSD) && ./waf<br>
> cd $(SRC_LIBBSD) && ./waf install<br>
> endef<br>
> <br>
> <br>
> I would like to switch to waf. But this is not available for the<br>
> kernel with RTEMS5 and unfortunately it does not work with RTEMS6.<br>
> Heinz > _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a><br>
> <br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div>