changeset 3:1a0de5121165

add comments
author kono
date Sun, 17 Dec 2017 12:17:53 +0900
parents 3d8479f80403
children 1ee02bb450bd
files main.yml
diffstat 1 files changed, 16 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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