1. 03 10月, 2012 1 次提交
    • D
      UAPI: Plumb the UAPI Kbuilds into the user header installation and checking · 10b63956
      David Howells 提交于
      Plumb the UAPI Kbuilds into the user header installation and checking system.
      As the headers are split the entries will be transferred across from the old
      Kbuild files to the UAPI Kbuild files.
      
      The changes made in this commit are:
      
       (1) Exported generated files (of which there are currently four) are moved to
           uapi/ directories under the appropriate generated/ directory, thus we
           get:
      
      	include/generated/uapi/linux/version.h
      	arch/x86/include/generated/uapi/asm/unistd_32.h
      	arch/x86/include/generated/uapi/asm/unistd_64.h
      	arch/x86/include/generated/uapi/asm/unistd_x32.h
      
           These paths were added to the build as -I flags in a previous patch.
      
       (2) scripts/Makefile.headersinst is now given the UAPI path to install from
           rather than the old path.
      
           It then determines the old path from that and includes that Kbuild also
           if it exists, thus permitting the headers to exist in either directory
           during the changeover.
      
           I also renamed the "install" variable to "installdir" as it refers to a
           directory not the install program.
      
       (3) scripts/headers_install.pl is altered to take a list of source file paths
           instead of just their names so that the makefile can tell it exactly
           where to find each file.
      
           For the moment, files can be obtained from one of four places for each
           output directory:
      
      	.../include/uapi/foo/
      	.../include/generated/uapi/foo/
      	.../include/foo/
      	.../include/generated/foo/
      
           The non-UAPI paths will be dropped later.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Acked-by: NDave Jones <davej@redhat.com>
      10b63956
  2. 24 6月, 2011 1 次提交
    • M
      headers_install: fix __packed in exported kernel headers · f210735f
      Markus Trippelsdorf 提交于
      checkpatch.pl warns about using __attribute__((packed)) in kernel
      headers: "__packed is preferred over __attribute__((packed))". If one
      follows that advice it could cause problems in the exported header
      files, because the outside world doesn't know about this shortcut.
      
      For example busybox will fail to compile:
       CC      miscutils/ubi_attach_detach.o
       In file included from miscutils/ubi_attach_detach.c:27:0:
       /usr/include/mtd/ubi-user.h:330:3: error: conflicting types for ‘__packed’
       /usr/include/mtd/ubi-user.h:314:3: note: previous declaration of ‘__packed’ was here
      ...
      
      Fix the problem by substituting __packed with __attribute__((packed)) in
      the header_install.pl script.
      
      Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
      CC: Joe Perches <joe@perches.com>
      Signed-off-by: NMarkus Trippelsdorf <markus@trippelsdorf.de>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      f210735f
  3. 14 12月, 2010 1 次提交
  4. 08 3月, 2010 1 次提交
  5. 12 10月, 2009 1 次提交
  6. 03 1月, 2009 1 次提交
  7. 30 10月, 2008 1 次提交
  8. 26 7月, 2008 2 次提交
    • S
      kbuild: install all headers when arch is changed · db1bec4f
      Sam Ravnborg 提交于
      We see some header files that are selected dependent on
      the actual architecture so force a reinstallation
      of all header files when the arch changes.
      This slows down "make headers_check_all" but then
      we better reflect reality.
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      db1bec4f
    • S
      kbuild: optimize headers_* targets · 7712401a
      Sam Ravnborg 提交于
      Move the core functionality of headers_install
      and headers_check to two small perl scripts.
      The makefile is adapted to use the perl scrip and
      changed to operate on all files in a directory.
      So if one file is changed then all files in the
      directory is processed.
      
      perl were chosen for the helper scripts because this
      is pure text processing which perl is good at and
      especially the headers_check.pl script are expected to
      see changes / new checks implmented.
      
      The speed is ~300% faster on this box.
      And the output generated to the screen is now down to
      two lines per directory (one for install, one for check)
      so it is easier to scroll back after a kernel build.
      
      The perl scripts has been brought to sanity by patient
      feedback from: Vegard Nossum <vegard.nossum@gmail.com>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      7712401a