infra_public/roles/stable/build/tasks/configure_custom.yml

11 lines
523 B
YAML

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