1. 16 12月, 2017 1 次提交
    • M
      x86/build: Make isoimage work on Debian · 5f0e3fe6
      Matthew Wilcox 提交于
      Debian does not ship a 'mkisofs' symlink to genisoimage.  All modern
      distros ship genisoimage, so just use that directly.  That requires
      renaming the 'genisoimage' function.  Also neaten up the 'for' loop
      while I'm in here.
      Signed-off-by: NMatthew Wilcox <mawilcox@microsoft.com>
      Cc: Changbin Du <changbin.du@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      5f0e3fe6
  2. 12 12月, 2017 1 次提交
  3. 09 11月, 2017 1 次提交
  4. 07 11月, 2017 3 次提交
    • C
      x86/build: Specify -input-charset=utf-8 for mkisofs · c306ba7b
      Changbin Du 提交于
      It avoids the following warning triggered by newer versions of mkisofs:
      
          -input-charset not specified, using utf-8 (detected in locale settings)
      Signed-off-by: NChangbin Du <changbin.du@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: yamada.masahiro@socionext.com
      Link: http://lkml.kernel.org/r/1509939179-7556-4-git-send-email-changbin.du@intel.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      c306ba7b
    • C
      x86/build: Add new paths for isolinux.bin and ldlinux.c32 · 8a7546a0
      Changbin Du 提交于
      Recently I failed to build isoimage target, because the path of isolinux.bin
      changed to /usr/xxx/ISOLINUX/isolinux.bin, as well as ldlinux.c32 which
      changed to /usr/xxx/syslinux/modules/bios/ldlinux.c32.
      
      This patch improves the file search logic:
        - Show a error message instead of silent fail.
        - Add above new paths.
      Signed-off-by: NChangbin Du <changbin.du@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: yamada.masahiro@socionext.com
      Link: http://lkml.kernel.org/r/1509939179-7556-3-git-send-email-changbin.du@intel.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      8a7546a0
    • C
      x86/build: Factor out fdimage/isoimage generation commands to standalone script · 4366d57a
      Changbin Du 提交于
      The build messages for fdimage/isoimage generation are pretty unstructured,
      just the raw shell command blocks are printed.
      
      Emit shortened messages similar to existing kbuild messages, and move
      the Makefile commands into a separate shell script - which is much
      easier to handle.
      
      This patch factors out the commands used for fdimage/isoimage generation
      from arch/x86/boot/Makefile to a new script arch/x86/boot/genimage.sh.
      Then it adds the new kbuild command 'genimage' which invokes the new script.
      All fdimages/isoimage files are now generated by a call to 'genimage' with
      different parameters.
      
      Now 'make isoimage' becomes:
      
      	...
      	Kernel: arch/x86/boot/bzImage is ready  (#30)
      	  GENIMAGE arch/x86/boot/image.iso
      	Size of boot image is 4 sectors -> No emulation
      	 15.37% done, estimate finish Sun Nov  5 23:36:57 2017
      	 30.68% done, estimate finish Sun Nov  5 23:36:57 2017
      	 46.04% done, estimate finish Sun Nov  5 23:36:57 2017
      	 61.35% done, estimate finish Sun Nov  5 23:36:57 2017
      	 76.69% done, estimate finish Sun Nov  5 23:36:57 2017
      	 92.00% done, estimate finish Sun Nov  5 23:36:57 2017
      	Total translation table size: 2048
      	Total rockridge attributes bytes: 659
      	Total directory bytes: 0
      	Path table size(bytes): 10
      	Max brk space used 0
      	32608 extents written (63 MB)
      	Kernel: arch/x86/boot/image.iso is ready
      
      Before:
      
      	Kernel: arch/x86/boot/bzImage is ready  (#63)
      	rm -rf arch/x86/boot/isoimage
      	mkdir arch/x86/boot/isoimage
      	for i in lib lib64 share end ; do \
      		if [ -f /usr/$i/syslinux/isolinux.bin ] ; then \
      			cp /usr/$i/syslinux/isolinux.bin arch/x86/boot/isoimage ; \
      			if [ -f /usr/$i/syslinux/ldlinux.c32 ]; then \
      				cp /usr/$i/syslinux/ldlinux.c32 arch/x86/boot/isoimage ; \
      			fi ; \
      			break ; \
      		fi ; \
      		if [ $i = end ] ; then exit 1 ; fi ; \
      	done
      	...
      Suggested-by: NIngo Molnar <mingo@kernel.org>
      Signed-off-by: NChangbin Du <changbin.du@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/1509939179-7556-2-git-send-email-changbin.du@intel.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
      4366d57a