configure_custom.yml 523 B

1234567891011
  1. ---
  2. - name: configure - Apply custom configs
  3. blockinfile:
  4. path: "{{ openwrt_build_dir }}/.config"
  5. block: "{{ lookup('ansible.builtin.template', 'default_config.j2') }}"
  6. - name: configure - Expand to full config via make defconfig
  7. shell: "cd {{ openwrt_build_dir }}; make defconfig"
  8. - name: configure - Diffconfig to configs/custom_config_{{openwrt_target}}_{{ openwrt_subtarget}}
  9. shell: "cd {{ openwrt_build_dir }}; ./scripts/diffconfig.sh > configs/custom_config_{{openwrt_target}}_{{ openwrt_subtarget}}"