Changeset 34527


Ignore:
Timestamp:
2012-12-05T18:31:33+01:00 (5 years ago)
Author:
florian
Message:

faad2: add configurable fixed point build

Change the faad build to use fixed point math if emulated floating point
is in use (based on CONFIG_SOFT_FLOAT). Adds a config option to force
the use of floating point math.

Signed-off-by: Andy Leiserson <andy@…>
Signed-off-by: Florian Fainelli <florian@…>

Location:
packages/libs/faad2
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/faad2/Makefile

    r32206 r34527  
    1010PKG_NAME:=faad2 
    1111PKG_VERSION:=2.7 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    1515PKG_SOURCE_URL:=@SF/faac 
    1616PKG_MD5SUM:=4c332fa23febc0e4648064685a3d4332 
     17 
     18PKG_CONFIG_DEPENDS := \ 
     19        CONFIG_SOFT_FLOAT \ 
     20        CONFIG_FAAD2_ALWAYS_USE_FLOATING_POINT 
    1721 
    1822PKG_FIXUP:=autoreconf 
     
    2226 
    2327TARGET_CFLAGS += $(FPIC) 
     28 
     29# Use fixed point math, if we're using soft floats, and the user didn't 
     30# specifically ask to use floats anyways. 
     31ifeq ($(CONFIG_SOFT_FLOAT)-$(CONFIG_FAAD2_ALWAYS_USE_FLOATING_POINT),y-) 
     32TARGET_CFLAGS+= -DFIXED_POINT 
     33endif 
    2434 
    2535define Package/faad2/Default 
     
    5363  TITLE+=library 
    5464  DEPENDS:=@BUILD_PATENTED 
     65  MENU:=1 
     66endef 
     67 
     68define Package/libfaad2/config 
     69        source "$(SOURCE)/Config.in" 
    5570endef 
    5671 
Note: See TracChangeset for help on using the changeset viewer.