Skip to content

Update feed [ broadcom ] package [ bcmkernel-4.19.235 ]

Mattias Barthel requested to merge mattias_7018 into devel

  • 53db1e119688 Makefile: Use ccache in bcm96xxx-bsp compilation

commit 53db1e11968834fd9bb440b3c92e11c326cd2d4d Author: Mattias Barthel mattias.barthel@iopsys.eu Date: Thu Aug 25 20:07:39 2022 +0200

Makefile: Use ccache in bcm96xxx-bsp compilation

According to ticket #7018

Using ccache will make package/bcmkernel/clean
followed by a make package/bcmkernel/compile complete
faster. Round half the build times have been observed
after this change and using ccache.

Example:
    dev@d16585f042cb:~/iopsyswrt$ make package/bcmkernel/clean &&
    time make CONFIG_CCACHE=y package/bcmkernel/compile -j8 &&
    make package/bcmkernel/clean &&
    time make CONFIG_CCACHE=y package/bcmkernel/compile -j8

    without
    real    17m6.152s
    user    197m58.644s
    sys     28m25.570s

    with:
    real    9m30.453s
    user    86m34.152s
    sys     15m15.164s

The stats from ccache can be shown with the following cmd:
    dev@d16585f042cb:~/iopsyswrt$ CCACHE_DIR=./.ccache staging_dir/host/bin/ccache -s
    Summary:
      Hits:            10081 / 19280 (52.29 %)
      Direct:         9871 / 20614 (47.88 %)
      Preprocessed:    210 /  9949 (2.11 %)
    Misses:           9199
      Direct:        10743
      Preprocessed:   9739
      Uncacheable:      5620
    Primary storage:
      Hits:            19954 / 40410 (49.38 %)
      Misses:          20456
    Cache size (GB):  0.50 /  5.00 (10.02 %)

Not included: ccache invoking for WiFi firmware toolchains

Merge request reports