# HG changeset patch # User kono # Date 1513480673 -32400 # Node ID 1a0de51211652351a011fdbafa874e686992b11d # Parent 3d8479f804037fe8d06275d6bceffc3e657ece5c add comments diff -r 3d8479f80403 -r 1a0de5121165 main.yml --- a/main.yml Sun Dec 17 09:30:46 2017 +0900 +++ b/main.yml Sun Dec 17 12:17:53 2017 +0900 @@ -1,3 +1,8 @@ +# build Feora Linux kernel from sourcr +# kono@ie.u-ryukyu.ac.jp +# + + - hosts: all remote_user: one become: yes @@ -19,20 +24,17 @@ args: chdir: /usr/src/ creates: /usr/src/kernel - + +# this should be cd /usr/src/kernel ; git checkout - name: git clone kernel git: > repo=git://git.kernel.org/pub/scm/linux/kernel/git/jwboyer/fedora.git dest=/usr/src/kernels/fedora +# this does not work and unnecessary # - name: authorize user script # shell: /usr/libexec/pesign/pesign-authorize-users - - name: dnf builddep kernel.spec - command: dnf -y builddep kernel.spec - args: - chdir: /usr/src/kernel - creates: /bin/gcc # # this does not work, we have to chdir to /usr/src/kernel # - name: install kernel dev packages @@ -43,7 +45,15 @@ # # args: # chdir: /usr/src/kernels/fedora +# use shell command instead +# + - name: dnf builddep kernel.spec + command: dnf -y builddep kernel.spec + args: + chdir: /usr/src/kernel + creates: /bin/gcc + # olddefconfig requires old config file - name: copy old .config copy: src: old.config @@ -52,8 +62,6 @@ - name: make olddefconfig shell: "{{ item }}" with_items: - # this will fail at the first time, do make menuconfig manually - # - make silentoldconfig .config - make olddefconfig args: chdir: /usr/src/kernels/fedora @@ -61,8 +69,6 @@ - name: make kernel shell: "{{ item }}" with_items: - # this will fail at the first time, do make menuconfig manually - # - make silentoldconfig .config - make -j8 args: chdir: /usr/src/kernels/fedora @@ -70,8 +76,6 @@ - name: make bzImage shell: "{{ item }}" with_items: - # this will fail at the first time, do make menuconfig manually - # - make silentoldconfig .config - make bzImage args: chdir: /usr/src/kernels/fedora