How to develop for NO effectively without excessive build times?

Thanks for the continued help.

I ran ./scripts/build linuxwith no changes to the source since it had previously been run, it completed more or less immediately and returned with no output.

I then modified directly modified amdv.c in the build.CoreELEC-Amlogic-no.aarch64-22 folder with the print statement. Removed the stamp file rm build.CoreELEC-Amlogic-no.aarch64-22/.stamps/linux/build_target and built with ./scripts/build linux. The last command took a little over a minute, but I did not see build statistics as you showed at the end of the build.

The end of the output (start truncated by the size of the terminal history / post limits) is:


  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv4/udp_diag.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv4/udp_tunnel.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/ah6.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/esp6.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/ip6_udp_tunnel.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/ipcomp6.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/netfilter/ip6_tables.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/netfilter/ip6t_REJECT.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/mip6.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/netfilter/ip6table_filter.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/netfilter/ip6table_mangle.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/netfilter/ip6table_nat.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/netfilter/nf_defrag_ipv6.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/netfilter/nf_reject_ipv6.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/sit.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/xfrm6_tunnel.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/ipv6/tunnel6.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/key/af_key.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/l2tp/l2tp_core.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/l2tp/l2tp_debugfs.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/l2tp/l2tp_eth.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/l2tp/l2tp_ip.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/l2tp/l2tp_ip6.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/l2tp/l2tp_netlink.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/l2tp/l2tp_ppp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/llc/llc.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/ipvs/ip_vs.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/ipvs/ip_vs_ftp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/ipvs/ip_vs_rr.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_conncount.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_conntrack.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_conntrack_broadcast.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_conntrack_ftp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_conntrack_netbios_ns.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_conntrack_netlink.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_conntrack_pptp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_conntrack_tftp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_log_syslog.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_nat.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_nat_ftp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nf_nat_tftp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nfnetlink.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nfnetlink_log.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/nfnetlink_queue.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/x_tables.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_CONNSECMARK.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_CT.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_MASQUERADE.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_NETMAP.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_REDIRECT.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_TCPMSS.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_TRACE.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_bpf.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_addrtype.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_comment.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_connlimit.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_connmark.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_conntrack.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_ecn.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_helper.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_hashlimit.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_hl.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_iprange.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_ipvs.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_l2tp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_length.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_limit.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_mac.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_mark.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_multiport.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_nat.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_owner.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_state.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_tcpmss.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/netfilter/xt_tcpudp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/xfrm/xfrm_algo.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/xfrm/xfrm_interface.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/xfrm/xfrm_ipcomp.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/net/xfrm/xfrm_user.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/sound/soc/codecs/snd-soc-spdif-rx.ko
  INSTALL /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170/kernel/sound/soc/codecs/snd-soc-spdif-tx.ko
  DEPMOD  /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/install_pkg/linux-2c3e329b7dec94edae5e9fb5f33669239c384436/usr/lib/kernel-overlays/base/lib/modules/5.15.170

Making multidtb g12a_s905x2_beelink_gt_mini_a.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/g12a_s905x2_beelink_gt_mini_a.dtb'
Found file: g12a_s905x2_beelink_gt_mini_a_4g.dtb
  chipset:             g12a, platform:           s905x2, rev:               4g
Found file: g12a_s905x2_beelink_gt_mini_a_2g.dtb
  chipset:             g12a, platform:           s905x2, rev:               2g
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb g12a_s905x2_beelink_gt1_mini.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/g12a_s905x2_beelink_gt1_mini.dtb'
Found file: g12a_s905x2_beelink_gt1_mini_2g.dtb
  chipset:             g12a, platform:             u212, rev:               2g
Found file: g12a_s905x2_beelink_gt1_mini_4g.dtb
  chipset:             g12a, platform:             u212, rev:               4g
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb g12b_bananapi_m2s.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/g12b_bananapi_m2s.dtb'
Found file: g12b_s922x_bananapi_m2s.dtb
  chipset:         bananapi, platform:              m2s, rev:             922x
Found file: g12b_a311d_bananapi_m2s.dtb
  chipset:         bananapi, platform:              m2s, rev:            a311d
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb g12b_s922x_beelink_gs_king_x.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/g12b_s922x_beelink_gs_king_x.dtb'
Found file: g12b_s922x_beelink_gs_king_x_rev_a.dtb
  chipset:             g12b, platform:             w400, rev:                a
Found file: g12b_s922x_beelink_gs_king_x.dtb
  chipset:             g12b, platform:             w400, rev:                b
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb g12b_s922x_beelink_gt_king.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/g12b_s922x_beelink_gt_king.dtb'
Found file: g12b_s922x_beelink_gt_king.dtb
  chipset:             g12b, platform:             w400, rev:                b
Found file: g12b_s922x_beelink_gt_king_rev_a.dtb
  chipset:             g12b, platform:             w400, rev:                a
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb g12b_s922x_odroid_n2.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/g12b_s922x_odroid_n2.dtb'
Found file: g12b_s922x_odroid_n2plus_rev_c.dtb
  chipset:             g12b, platform:             w400, rev:                c
Found file: g12b_s922x_odroid_n2.dtb
  chipset:             g12b, platform:             w400, rev:                a
Found file: g12b_s922x_odroid_n2plus.dtb
  chipset:             g12b, platform:             w400, rev:                b
=> Found 3 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb g12b_s922x_ugoos_am6.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/g12b_s922x_ugoos_am6.dtb'
Found file: g12b_s922x_ugoos_am6_4g.dtb
  chipset:             g12b, platform:              AM6, rev:              b4g
Found file: g12b_s922x_ugoos_am6_rev_a_4g.dtb
  chipset:             g12b, platform:              AM6, rev:              a4g
Found file: g12b_s922x_ugoos_am6_2g.dtb
  chipset:             g12b, platform:              AM6, rev:              b2g
Found file: g12b_s922x_ugoos_am6_rev_a_2g.dtb
  chipset:             g12b, platform:              AM6, rev:              a2g
=> Found 4 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb g12b_s922x_ugoos_am6b.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/g12b_s922x_ugoos_am6b.dtb'
Found file: g12b_s922x_ugoos_am6b_rev_a_2g.dtb
  chipset:             g12b, platform:             AM6b, rev:              a2g
Found file: g12b_s922x_ugoos_am6b_2g.dtb
  chipset:             g12b, platform:             AM6b, rev:              b2g
Found file: g12b_s922x_ugoos_am6b_4g.dtb
  chipset:             g12b, platform:             AM6b, rev:              b4g
Found file: g12b_s922x_ugoos_am6b_rev_a_4g.dtb
  chipset:             g12b, platform:             AM6b, rev:              a4g
=> Found 4 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb s4_s905y4_buzztv_hd5.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/s4_s905y4_buzztv_hd5.dtb'
Found file: s4_s905y4_buzztv_hd5_2g.dtb
  chipset:               s4, platform:              hd5, rev:               2g
Found file: s4_s905y4_buzztv_hd5_4g.dtb
  chipset:               s4, platform:              hd5, rev:               4g
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb s5_s928x_ugoos_am8.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/s5_s928x_ugoos_am8.dtb'
Found file: s5_s928x_ugoos_am8_8g.dtb
  chipset:               s5, platform:            s928x, rev:           AM8-8g
Found file: s5_s928x_ugoos_am8_4g.dtb
  chipset:               s5, platform:            s928x, rev:           AM8-4g
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb s5_s928x_x96_x10.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/s5_s928x_x96_x10.dtb'
Found file: s5_s928x_x96_x10_8g.dtb
  chipset:               s5, platform:            s928x, rev:       ax201-v28g
Found file: s5_s928x_x96_x10_4g.dtb
  chipset:               s5, platform:            s928x, rev:         ax201-v2
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb sc2_s905x4_buzztv_x5.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/sc2_s905x4_buzztv_x5.dtb'
Found file: sc2_s905x4_buzztv_x5_2g.dtb
  chipset:              sc2, platform:           s905x4, rev:     ah212-Eth-2g
Found file: sc2_s905x4_buzztv_x5_2g_1gbit.dtb
  chipset:              sc2, platform:           s905x4, rev:    ah212-gEth-2g
Found file: sc2_s905x4_buzztv_x5_4g_1gbit.dtb
  chipset:              sc2, platform:           s905x4, rev:    ah212-gEth-4g
Found file: sc2_s905x4_buzztv_x5_4g.dtb
  chipset:              sc2, platform:           s905x4, rev:     ah212-Eth-4g
=> Found 4 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb sc2_s905x4_sei_smb_280.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/sc2_s905x4_sei_smb_280.dtb'
Found file: sc2_s905x4_sei_smb_280_id6.dtb
  chipset:              sc2, platform:           s905x4, rev:        ah212-id6
Found file: sc2_s905x4_sei_smb_280_id5.dtb
  chipset:              sc2, platform:           s905x4, rev:        ah212-id5
Found file: sc2_s905x4_sei_smb_280_id7.dtb
  chipset:              sc2, platform:           s905x4, rev:        ah212-id7
=> Found 3 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb sm1_s905x3_beelink_gt1mini2.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/sm1_s905x3_beelink_gt1mini2.dtb'
Found file: sm1_s905x3_beelink_gt1mini2_4g.dtb
  chipset:              sm1, platform:            ac213, rev:               4g
Found file: sm1_s905x3_beelink_gt1mini2_2g.dtb
  chipset:              sm1, platform:            ac213, rev:               2g
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb t7_a311d2_beelink_gt_king_ii.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/t7_a311d2_beelink_gt_king_ii.dtb'
Found file: t7_a311d2_beelink_gt_king_ii_4g.dtb
  chipset:               t7, platform:           a311d2, rev:            an400
Found file: t7_a311d2_beelink_gt_king_ii_8g.dtb
  chipset:               t7, platform:           a311d2, rev:         an400-8g
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Making multidtb t7_a311d2_khadas_vim4.dtb
DTB combiner:
  Input directory: 'common_drivers/arch/arm64/boot/dts/amlogic/dtbtool_input/'
  Output file: 'common_drivers/arch/arm64/boot/dts/amlogic/t7_a311d2_khadas_vim4.dtb'
Found file: t7_a311d2_khadas_vim4.dtb
  chipset:               t7, platform:           a311d2, rev:         an400-8g
Found file: t7c_a311d2_khadas_vim4n.dtb
  chipset:              t7c, platform:           a311d2, rev:         an400-8g
=> Found 2 unique DTB(s)

Generating master DTB... completed
Compressing master DTB... completed

Compressing initramfs.cpio with zstd
  10523136 bytes  /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/image/initramfs.cpio
  7274131 bytes  /home/debian/CoreElec22/CoreELEC/build.CoreELEC-Amlogic-no.aarch64-22/image/initramfs.cpio.zst

I then updated the device by copying the Image.lzo as previously suggested.

The new print message has not appeared in the dmesg output. However, the second line of the dmesg output that says the linux version has a new timestamp that reflects when I built it.


edit: I appears I altered the wrong copy of amdv.c as there are multiple of then in build folder. Modifying the correct one works. Any suggestion on how to make this work without directly modifying code in the build folder so git can be used? The patch files I’ve been using (as per How to develop for NO effectively without excessive build times? - #6 by vpeter) seem to generate a full rebuild

Turns out the kodi.bin I was using is fine, the issue was I tested with your original instructions from How to develop for NO effectively without excessive build times? - #14 by vpeter that do not work. Your revised ones in How to develop for NO effectively without excessive build times? - #17 by vpeter do work.

You need to set into file ~/.coreelec/options this line
TRACE_BUILD_TIMING=1
or set it from command line.

You can’t use patch for that because when patch is changed whole package is rebuild.

One option would be to setup git repo in folder build.CoreELEC-Amlogic-no.aarch64-22/build/linux-2722dae9e554249d1339726e4f07a45b4af0313b/common_drivers.
Or maybe after linux is build first without changes remove this common_drivers folder and make symbolic link to your local git repo. And edit code there.
Of course you have to repeat this steps if linux package is rebuild.

Thanks.

Ended up using rsync to copy files from a a seperate common_drivers repo to build.CoreELEC-Amlogic-no.aarch64-22/build/linux-2722dae9e554249d1339726e4f07a45b4af0313b/common_drivers which is working to only rebuild the changed objects

1 Like

I have the same question.

How can I compile *only the Kodi component for testing changes?

I tried the solution above with the system script but even when I run scripts/build kodi it’s building what looks like everything instead of giving me just Kodi that I can update into an existing SYSTEM file for testing

Thanks

For kodi only I wrote already how to proceed (by building kodi package only and copying kodi.bin file to device and kill old procedd and start new one).
Or running make and overwrite whole SYSTEM file and reboot.

Thank you vpeter but I’m not asking for instructions on how to update a live system.

It took 2 hours on an Intel Core Ultra 7 to build just running ā€œscripts/build kodiā€ on a fresh source tree because it built 182 packages to get to the 1 I wanted to compile.

Now with that done I can go change code, remove stamps and recompile just Kodi but if I have to reset or test against a different version it’s going to go back to the 2 hours process.

First step is to build normal image. Then you can play with just one package. And you can’t avoid that - it’s by design.
Now imagine my nvme/ssd drive which builds and builds and builds. Health is not very good anymore.

Faster build machine helps a lot (my record is 21 minuts clean build and 12 minuts rebuild with ccache).

Okay then if it’s by design, even if I don’t like the design, I’ll accept that.

Yes, I can imagine your nvme because I’m running on a Samsung 980 Pro and it’s going to be trash after all the excessive building. That’s the way it goes though, I don’t want to know how slow it might be on a magnetic medium.

I’ll have to throw it on one of my cloud servers and see just how fast I can get it done.

Thanks for all the replies!

I’m back …

I finally got to the point I was ready to test ā€œjust kodi changesā€

I did the make system to install to a target system folder which I would then make into a new squashfs and send over to the CE device for testing.

When I do ā€˜make system’ from the script above it wants to compile all the rest of the CE packages that I avoided in the first place.

So there’s no way to update a single package to test a single change to a single file without compiling the entire CoreELEC source.

Sure it works. Multiple times written on forum.
Also including helper scripts.

As I wrote to you: first you make normal build which builds ALL the packages.
Then you can touch only ONE file and build just ONE package. And everything is packed into SYSTEM (not compiled again: only packed). It only takes few ~10 seconds.

1 Like

We’re talking about 2 different things.

I wanted to perform these steps

Download CoreELEC-Amlogic-no.aarch64-22.0-Piers_alpha2-Generic.img.gz

unpack gz

unsqushfs SYSTEM

git clone CoreELEC

cd CoreELEC && scripts/build kodi

(update squashfs-root with fresh compiled kodi files)

mksquashfs

Which saves me from compiling everything already compiled that I’m not changing.

This is what I’m saying is not possible.

I understand what you both are saying, if you ā€œcompletely compile everything firstā€ then you can change 1 package.

And I told you it is by design: you can’t compile only kodi. You need to build toolchain, all the required libraries and then kodi. Is this so hard to understand? Use the process as designed.

And packing kodi.bin inside old SYSTEM is not even needed because it can be run directly as also wrote above.

You might consider adding such a method to be more considerate of developers’ time and resources who might want to contribute but are put off because of the excessively build time.

Especially since the packages fail 10% of the time due to bad hashes or broken links adding to the build time requiring fixes to the codebase before you ever get to a point to test your own code changes.

My builds failed 3x already due to that so I give up, I’ll test on android+linux and just assume it works on CoreELEC when I submit a PR to xbmc.

Thanks for all your time.

No plan for such scenarios. It works for more than 15 years just fine.
If you need such development environment you are using wrong one.

I think some other build environments (like yocto) works the same and no one complaints.

I think no more discussion about this ā€œproblemā€ is needed. You can point us to your PR to be tested on CE by someone if needed.