configure_init.yml 634 B

12345678910111213141516
  1. ---
  2. - name: configure - Initialize .config
  3. shell: "cd {{ openwrt_build_dir }}; rm .config; make defconfig"
  4. - name: configure - Append target .config
  5. blockinfile:
  6. path: "{{ openwrt_build_dir }}/.config"
  7. block: "{{ lookup('ansible.builtin.template', 'default_target_config.j2') }}"
  8. - name: configure - Expand to full config
  9. shell: "cd {{ openwrt_build_dir }}; make defconfig"
  10. - name: configure - Copy .config to configs/default_config_{{openwrt_target}}_{{ openwrt_subtarget}}
  11. shell: "cd {{ openwrt_build_dir }}; \
  12. mkdir configs; \
  13. cp .config configs/default_config_{{openwrt_target}}_{{ openwrt_subtarget}}"