Преглед на файлове

Special rules for mipsel. Force some variables in Config, in
case they're wrong (they are.) Remove Config during clean.

David Schleef преди 24 години
родител
ревизия
e4e0b255f3
променени са 2 файла, в които са добавени 14 реда и са изтрити 3 реда
  1. 3 3
      debian/control
  2. 11 0
      debian/rules

+ 3 - 3
debian/control

@@ -7,7 +7,7 @@ Standards-Version: 3.5.6
 
 Package: libuclibc-dev
 Section: devel
-Architecture: arm i386 m68k mips powerpc sh sparc
+Architecture: arm i386 m68k mips mipsel powerpc sh sparc
 Depends: libuclibc0 (= ${Source-Version})
 Description: A small implementation of the C library
  uClibc is an implementation of the standard C library that is
@@ -17,7 +17,7 @@ Description: A small implementation of the C library
 
 Package: libuclibc0
 Section: libs
-Architecture: arm i386 m68k mips powerpc sh sparc
+Architecture: arm i386 m68k mips mipsel powerpc sh sparc
 Depends:
 Description: A small implementation of the C library
  uClibc is an implementation of the standard C library that is
@@ -30,7 +30,7 @@ Description: A small implementation of the C library
 
 Package: uclibc-toolchain
 Section: devel
-Architecture: arm i386 m68k mips powerpc sh sparc
+Architecture: arm i386 m68k mips mipsel powerpc sh sparc
 Depends: gcc|c-compiler, binutils, ${shlibs:Depends}
 Recommends: libuclibc-dev
 Conflicts: uclibc-gcc

+ 11 - 0
debian/rules

@@ -44,12 +44,18 @@ build-stamp: debian/control
 	# Brute force method of getting kernel headers
 	tar --bzip2 -xf /usr/src/$(kernel_source).tar.bz2 $(kernel_source)/include
 
+ifneq ($(target),mipsel)
 	cp extra/Configs/Config.$(target) Config
+else
+	cp extra/Configs/Config.mips Config
+endif
 
 	echo '#Debian configuration overrides'  >>Config
 ifneq ($(target),$(DEB_HOST_GNU_CPU))
 	echo 'TARGET_ARCH = $(target)'  >>Config
 	echo 'CROSS = $(target)-linux-'  >>Config
+else
+	echo 'CROSS = '  >>Config
 endif
 	echo 'DOPIC = true'  >>Config
 	echo 'SYSTEM_DEVEL_PREFIX = /usr'  >>Config
@@ -61,6 +67,9 @@ ifeq ($(with_shared_libs),n)
 endif
 	echo 'KERNEL_SOURCE = '`pwd`/$(kernel_source) >>Config
 	echo 'HAS_MMU = true' >>Config
+	echo 'HAS_FLOATING_POINT = true' >>Config
+	echo 'DO_C99_MATH = true' >>Config
+	echo 'DODEBUG = false' >>Config
 
 	$(MAKE)
 
@@ -78,6 +87,8 @@ clean: debian/control
 	# Add here commands to clean up after the build process.
 	-$(MAKE) clean
 
+	-rm Config
+
 	dh_clean
 
 install: build debian/control