~ubuntu-branches/ubuntu/vivid/oss4/vivid

« back to all changes in this revision

Viewing changes to setup/srcconf_linux.inc

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis, Samuel Thibault, Romain Beauxis, Sebastien NOEL
  • Date: 2011-06-14 10:06:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614100656-cx4oc7u426zn812z
Tags: 4.2-build2004-1
[ Samuel Thibault ]
* debian/control: Add liboss4-salsa2, liboss4-salsa-dev and
  liboss4-salsa-asound2 packages, equivalent to (and will replace) those from
  the oss-libsalsa package (Closes: #589127).
* debian/patches/liboss4-salsa.patch: New patch to rename libsalsa into
  liboss4-salsa to avoid conflicts in the archive for no good reason.
* debian/rules: Make in libOSSlib and libsalsa.
* debian/liboss4-salsa-dev.install, debian/liboss4-salsa2.install,
  debian/liboss4-salsa-asound2.links, debian/liboss4-salsa-dev.links:
  Install liboss4-salsa libraries like was done in the oss-libsalsa package.
* include-alsa: Add a copy of ALSA 1.0.5 headers: Cf ALSA_1.0.* symbols in
  libsalsa, this is the roughly supported version.
* debian/copyright: Update for new include-alsa files.
* alsa.pc: New file for compatibility with libasound-dev.
* debian/control:
  - Add Vcs-Browser and Vcs-Svn fields.
  - Use linux-any instead of the list of Linux archs (Closes: #604679).
  - Make dkms dependency linux-any only.
* debian/patches/hurd_iot.patch: New patch to fix soundcard.h usage in
  libsalsa on hurd-i386.
* debian/patches/libsalsa_fixes.patch: New patch to fix some printf usages
  and ioctl declaration in libsalsa.
* debian/patches/no_EBADE.patch: New patch to cope with hurd-i386 not having
  EBADE.
* debian/patches/CFLAGS.patch: New patch to make oss4 take debian/rules
  CFLAGS into account.
* debian/patches/snd_asoundlib_version.patch: New patch to add
  snd_asoundlib_version().
* debian/patches/generic_srccconf.patch: New patch to fix source
  configuration on unknown archs.

[ Romain Beauxis ]
* Fixed README.Debian to only mention dkms' modules.
* Switch to dpkg-source 3.0 (quilt) format
* Added DM-Upload-Allowed: yes

[ Sebastien NOEL ]
* New upstream release (Closes: #595298, #619272).
* Fix typo in initscript (Closes: #627149).
* debian/control: adjust linux-headers dependencies (Closes: #628879).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
static char * fnsp = " -fno-stack-protector";
 
2
 
 
3
#define HAVE_SYSDEP
 
4
#define HAVE_KERNEL_FLAGS
 
5
static void
 
6
check_sysdep (conf_t * conf, struct utsname *un)
 
7
{
 
8
  char *p;
 
9
 
 
10
  char cmd[512];
 
11
 
 
12
#ifndef __arm__
 
13
  vmix_mode = "FLOAT";
 
14
#else
 
15
  exact_architectures = 1; /* Compile only the drivers with targetcpu=arm */
 
16
#endif
 
17
 
 
18
  if ((p=getenv("CROSSCOMPILE"))!=NULL)
 
19
     {
 
20
        if (strcmp(p, "uclinux-blackfin")==0)
 
21
           {
 
22
                hostcc="cc";
 
23
                targetcc="uclinux-blackfin-gcc";
 
24
           }
 
25
#ifdef VXWORKS
 
26
        else if (strcmp(p, "vxworks-x86")==0)
 
27
           {
 
28
                vxworks_setup(conf, "386");
 
29
           }
 
30
#endif
 
31
     }
 
32
 
 
33
  /*
 
34
   * Check if cc supports -fno-stack-protector
 
35
   */
 
36
  sprintf (cmd, "%s -c -o srcconf.o -fno-stack-protector setup/srcconf.c >/dev/null 2>&1", targetcc);
 
37
  if (system(cmd))
 
38
    {
 
39
      fnsp = "";
 
40
    }
 
41
 
 
42
  if (do_warning_checks)
 
43
    strcpy(conf->OSflags, "-Wall -Werror");
 
44
  strcpy (conf->ccomp, targetcc);
 
45
  strcpy (conf->cplusplus, "g++ -fno-rtti -fno-exceptions -I.");
 
46
  strcpy (conf->platform, "i86pc");
 
47
}
 
48
 
 
49
static void
 
50
add_kernel_flags (FILE * f)
 
51
{
 
52
# if defined(__x86_64__)
 
53
  fprintf (f,
 
54
             "CFLAGS += -O3 -fno-common  -mcmodel=kernel -mno-red-zone  -fno-asynchronous-unwind-tables -ffreestanding%s\n", fnsp);
 
55
# else
 
56
#   if defined(__arm__) || defined(__sh__) || defined(__mips__) || defined(__sparc__) || defined(__ia64__) || defined(__alpha__) || defined(__s390__) || defined(__powerpc__) || defined(__hppa__)
 
57
  fprintf (f, "CFLAGS += -O3 -fno-common -ffreestanding%s\n", fnsp);
 
58
#   else
 
59
  if (getenv ("NO_REGPARM") == NULL)
 
60
        {
 
61
          fprintf (f,
 
62
                   "CFLAGS += -O3 -fno-common -ffreestanding -mregparm=3 -DUSE_REGPARM%s\n", fnsp);
 
63
        }
 
64
  else
 
65
        {
 
66
          fprintf (f, "CFLAGS += -O3 -fno-common -ffreestanding -DNO_REGPARM%s\n", fnsp);
 
67
        }
 
68
#   endif
 
69
# endif
 
70
}