From 3e6b6c84907ae93769049654604e98bca4f03442 Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 7 Oct 2005 17:05:47 +0000 Subject: rename toolchain/libmissing to libnotimpl (fix dnsiff build) git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2065 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 30 ++++++++++++++++++++++++++++++ toolchain/libnotimpl/files/math.c | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 toolchain/libnotimpl/Makefile create mode 100644 toolchain/libnotimpl/files/math.c (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile new file mode 100644 index 000000000..9ae2bf240 --- /dev/null +++ b/toolchain/libnotimpl/Makefile @@ -0,0 +1,30 @@ +include $(TOPDIR)/rules.mk + +LIBNOTIMPL_DIR:=$(TOOL_BUILD_DIR)/libnotimpl + +LIBNOTIMPL_SRCS+=./files/math.c +LIBNOTIMPL_OBJS:=$(patsubst ./files/%.c,$(LIBNOTIMPL_DIR)/%.o,$(LIBNOTIMPL_SRCS)) + +$(LIBNOTIMPL_DIR)/.prepared: + mkdir -p $(LIBNOTIMPL_DIR) + touch $@ + +$(LIBNOTIMPL_OBJS): $(LIBNOTIMPL_DIR)/%.o : ./files/%.c + $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@ + +$(LIBNOTIMPL_DIR)/libnotimpl.a: $(LIBNOTIMPL_OBJS) + $(TARGET_CROSS)ar rc $(LIBNOTIMPL_DIR)/libnotimpl.a $(LIBNOTIMPL_OBJS) + +$(STAGING_DIR)/usr/lib/libnotimpl.a: $(LIBNOTIMPL_DIR)/libnotimpl.a + mkdir -p $(STAGING_DIR)/usr/lib + cp -fpR $< $@ + touch -c $@ + +source: +prepare: $(LIBNOTIMPL_DIR)/.prepared +compile: $(LIBNOTIMPL_DIR)/libnotimpl.a +install: $(STAGING_DIR)/usr/lib/libnotimpl.a +clean: + rm -rf \ + $(STAGING_DIR)/usr/lib/libnotimpl.a \ + $(LIBNOTIMPL_DIR) \ diff --git a/toolchain/libnotimpl/files/math.c b/toolchain/libnotimpl/files/math.c new file mode 100644 index 000000000..cc8a661ac --- /dev/null +++ b/toolchain/libnotimpl/files/math.c @@ -0,0 +1,35 @@ +/* vi: set sw=4 ts=4: */ + +/* cosf for uClibc + * + * wrapper for cos(x) + */ + +#include "math.h" + +#ifdef __STDC__ + float cosf(float x) /* wrapper cos */ +#else + float cosf(x) /* wrapper cos */ + float x; +#endif +{ + return (float) cos( (double)x ); +} + +/* sinf for uClibc + * + * wrapper for sin(x) + */ + +#include "math.h" + +#ifdef __STDC__ + float sinf(float x) /* wrapper sin */ +#else + float sinf(x) /* wrapper sin */ + float x; +#endif +{ + return (float) sin( (double)x ); +} -- cgit v1.2.3 From 1f675b05326c09cf39c9692c43592dd4c006618c Mon Sep 17 00:00:00 2001 From: nico Date: Thu, 20 Oct 2005 08:08:06 +0000 Subject: add rintf wrapper to libnotimpl git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2190 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/files/math.c | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/files/math.c b/toolchain/libnotimpl/files/math.c index cc8a661ac..8934197d8 100644 --- a/toolchain/libnotimpl/files/math.c +++ b/toolchain/libnotimpl/files/math.c @@ -1,16 +1,16 @@ /* vi: set sw=4 ts=4: */ +#include "math.h" + /* cosf for uClibc * * wrapper for cos(x) */ -#include "math.h" - #ifdef __STDC__ - float cosf(float x) /* wrapper cos */ + float cosf(float x) #else - float cosf(x) /* wrapper cos */ + float cosf(x) float x; #endif { @@ -22,12 +22,25 @@ * wrapper for sin(x) */ -#include "math.h" +#ifdef __STDC__ + float sinf(float x) +#else + float sinf(x) + float x; +#endif +{ + return (float) sin( (double)x ); +} + +/* rintf for uClibc + * + * wrapper for rint(x) + */ #ifdef __STDC__ - float sinf(float x) /* wrapper sin */ + float rintf(float x) #else - float sinf(x) /* wrapper sin */ + float rintf(x) float x; #endif { -- cgit v1.2.3 From c53df2530235cd557e0d51392f9eb22f4aa64255 Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 6 Nov 2005 05:51:42 +0000 Subject: add ceilf wrapper (not present in uClibc-0.9.28) git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2348 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/files/math.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/files/math.c b/toolchain/libnotimpl/files/math.c index 8934197d8..a16ea740e 100644 --- a/toolchain/libnotimpl/files/math.c +++ b/toolchain/libnotimpl/files/math.c @@ -2,6 +2,7 @@ #include "math.h" + /* cosf for uClibc * * wrapper for cos(x) @@ -17,6 +18,7 @@ return (float) cos( (double)x ); } + /* sinf for uClibc * * wrapper for sin(x) @@ -32,6 +34,23 @@ return (float) sin( (double)x ); } + +/* ceilf for uClibc + * + * wrapper for ceil(x) + */ + +#ifdef __STDC__ + float ceilf(float x) +#else + float rintf(x) + float x; +#endif +{ + return (float) ceil( (double)x ); +} + + /* rintf for uClibc * * wrapper for rint(x) @@ -46,3 +65,4 @@ { return (float) sin( (double)x ); } + -- cgit v1.2.3 From 82daa5e9c007b2a16aa9e8c5526fd8d034ee4541 Mon Sep 17 00:00:00 2001 From: mbm Date: Wed, 1 Feb 2006 23:53:19 +0000 Subject: change cp to $(CP) git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3112 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile index 9ae2bf240..f68346c37 100644 --- a/toolchain/libnotimpl/Makefile +++ b/toolchain/libnotimpl/Makefile @@ -17,7 +17,7 @@ $(LIBNOTIMPL_DIR)/libnotimpl.a: $(LIBNOTIMPL_OBJS) $(STAGING_DIR)/usr/lib/libnotimpl.a: $(LIBNOTIMPL_DIR)/libnotimpl.a mkdir -p $(STAGING_DIR)/usr/lib - cp -fpR $< $@ + $(CP) $< $@ touch -c $@ source: -- cgit v1.2.3 From 06265758beb1721526360aa01176dd70d8a9e1d4 Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 31 May 2006 23:29:05 +0000 Subject: cleanup; replace .PHONY with FORCE; disable gdb by default git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3877 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile index f68346c37..86ab927c1 100644 --- a/toolchain/libnotimpl/Makefile +++ b/toolchain/libnotimpl/Makefile @@ -24,7 +24,7 @@ source: prepare: $(LIBNOTIMPL_DIR)/.prepared compile: $(LIBNOTIMPL_DIR)/libnotimpl.a install: $(STAGING_DIR)/usr/lib/libnotimpl.a -clean: +clean: FORCE rm -rf \ $(STAGING_DIR)/usr/lib/libnotimpl.a \ $(LIBNOTIMPL_DIR) \ -- cgit v1.2.3 From 94266d638908a140ef5cdd9b27d2eb367f97249f Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 21 Jun 2006 06:19:43 +0000 Subject: massive cleanup of toolchain/ git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4038 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 44 +++++++++++++------------ toolchain/libnotimpl/files/math.c | 68 --------------------------------------- toolchain/libnotimpl/src/math.c | 68 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+), 88 deletions(-) delete mode 100644 toolchain/libnotimpl/files/math.c create mode 100644 toolchain/libnotimpl/src/math.c (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile index 86ab927c1..aae7aef34 100644 --- a/toolchain/libnotimpl/Makefile +++ b/toolchain/libnotimpl/Makefile @@ -1,30 +1,34 @@ include $(TOPDIR)/rules.mk -LIBNOTIMPL_DIR:=$(TOOL_BUILD_DIR)/libnotimpl +PKG_NAME := libnotimpl +PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/libnotimpl -LIBNOTIMPL_SRCS+=./files/math.c -LIBNOTIMPL_OBJS:=$(patsubst ./files/%.c,$(LIBNOTIMPL_DIR)/%.o,$(LIBNOTIMPL_SRCS)) +include $(INCLUDE_DIR)/host-build.mk -$(LIBNOTIMPL_DIR)/.prepared: - mkdir -p $(LIBNOTIMPL_DIR) - touch $@ +define cc + $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o +endef -$(LIBNOTIMPL_OBJS): $(LIBNOTIMPL_DIR)/%.o : ./files/%.c - $(TARGET_CC) $(TARGET_CFLAGS) -c $< -o $@ +define Build/Prepare + rm -rf $(PKG_BUILD_DIR) + mkdir -p $(PKG_BUILD_DIR) +endef -$(LIBNOTIMPL_DIR)/libnotimpl.a: $(LIBNOTIMPL_OBJS) - $(TARGET_CROSS)ar rc $(LIBNOTIMPL_DIR)/libnotimpl.a $(LIBNOTIMPL_OBJS) +define Build/Compile + $(call cc,math) + $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o +endef -$(STAGING_DIR)/usr/lib/libnotimpl.a: $(LIBNOTIMPL_DIR)/libnotimpl.a +define Build/Install mkdir -p $(STAGING_DIR)/usr/lib - $(CP) $< $@ - touch -c $@ - -source: -prepare: $(LIBNOTIMPL_DIR)/.prepared -compile: $(LIBNOTIMPL_DIR)/libnotimpl.a -install: $(STAGING_DIR)/usr/lib/libnotimpl.a -clean: FORCE + $(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/ +endef + +define Build/Clean rm -rf \ $(STAGING_DIR)/usr/lib/libnotimpl.a \ - $(LIBNOTIMPL_DIR) \ + $(PKG_BUILD_DIR) +endef + +$(eval $(call HostBuild)) + diff --git a/toolchain/libnotimpl/files/math.c b/toolchain/libnotimpl/files/math.c deleted file mode 100644 index a16ea740e..000000000 --- a/toolchain/libnotimpl/files/math.c +++ /dev/null @@ -1,68 +0,0 @@ -/* vi: set sw=4 ts=4: */ - -#include "math.h" - - -/* cosf for uClibc - * - * wrapper for cos(x) - */ - -#ifdef __STDC__ - float cosf(float x) -#else - float cosf(x) - float x; -#endif -{ - return (float) cos( (double)x ); -} - - -/* sinf for uClibc - * - * wrapper for sin(x) - */ - -#ifdef __STDC__ - float sinf(float x) -#else - float sinf(x) - float x; -#endif -{ - return (float) sin( (double)x ); -} - - -/* ceilf for uClibc - * - * wrapper for ceil(x) - */ - -#ifdef __STDC__ - float ceilf(float x) -#else - float rintf(x) - float x; -#endif -{ - return (float) ceil( (double)x ); -} - - -/* rintf for uClibc - * - * wrapper for rint(x) - */ - -#ifdef __STDC__ - float rintf(float x) -#else - float rintf(x) - float x; -#endif -{ - return (float) sin( (double)x ); -} - diff --git a/toolchain/libnotimpl/src/math.c b/toolchain/libnotimpl/src/math.c new file mode 100644 index 000000000..a16ea740e --- /dev/null +++ b/toolchain/libnotimpl/src/math.c @@ -0,0 +1,68 @@ +/* vi: set sw=4 ts=4: */ + +#include "math.h" + + +/* cosf for uClibc + * + * wrapper for cos(x) + */ + +#ifdef __STDC__ + float cosf(float x) +#else + float cosf(x) + float x; +#endif +{ + return (float) cos( (double)x ); +} + + +/* sinf for uClibc + * + * wrapper for sin(x) + */ + +#ifdef __STDC__ + float sinf(float x) +#else + float sinf(x) + float x; +#endif +{ + return (float) sin( (double)x ); +} + + +/* ceilf for uClibc + * + * wrapper for ceil(x) + */ + +#ifdef __STDC__ + float ceilf(float x) +#else + float rintf(x) + float x; +#endif +{ + return (float) ceil( (double)x ); +} + + +/* rintf for uClibc + * + * wrapper for rint(x) + */ + +#ifdef __STDC__ + float rintf(float x) +#else + float rintf(x) + float x; +#endif +{ + return (float) sin( (double)x ); +} + -- cgit v1.2.3 From a35fb6c438c11e118d9241be1cdf6d3e06b7c9bb Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 27 Jun 2006 00:44:04 +0000 Subject: add missing copyright git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4094 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile index aae7aef34..bc515ca08 100644 --- a/toolchain/libnotimpl/Makefile +++ b/toolchain/libnotimpl/Makefile @@ -1,3 +1,9 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# include $(TOPDIR)/rules.mk PKG_NAME := libnotimpl -- cgit v1.2.3 From 5d099491cf5469749a3961291b621429aeee0070 Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 4 Aug 2006 09:14:20 +0000 Subject: fix everything I broke with the previous patches git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4436 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile index bc515ca08..214f51c5d 100644 --- a/toolchain/libnotimpl/Makefile +++ b/toolchain/libnotimpl/Makefile @@ -12,7 +12,7 @@ PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/libnotimpl include $(INCLUDE_DIR)/host-build.mk define cc - $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o + PATH="$(TARGET_PATH)" $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o endef define Build/Prepare @@ -22,7 +22,7 @@ endef define Build/Compile $(call cc,math) - $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o + PATH="$(TARGET_PATH)" $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o endef define Build/Install -- cgit v1.2.3 From ef998d64e381ed0a92fc73edf4206f7be7335caf Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 4 Aug 2006 11:59:52 +0000 Subject: set PATH in rules.mk git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4438 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile index 214f51c5d..bc515ca08 100644 --- a/toolchain/libnotimpl/Makefile +++ b/toolchain/libnotimpl/Makefile @@ -12,7 +12,7 @@ PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/libnotimpl include $(INCLUDE_DIR)/host-build.mk define cc - PATH="$(TARGET_PATH)" $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o + $(TARGET_CC) $(TARGET_CFLAGS) -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o endef define Build/Prepare @@ -22,7 +22,7 @@ endef define Build/Compile $(call cc,math) - PATH="$(TARGET_PATH)" $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o + $(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o endef define Build/Install -- cgit v1.2.3 From 8afb23270d23db6a033ba8fb77e1cf1a1d925a7c Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 24 Sep 2006 20:49:31 +0000 Subject: new (last?) attempt at standardizing Makefiles git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4855 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile index bc515ca08..d55bf4e3f 100644 --- a/toolchain/libnotimpl/Makefile +++ b/toolchain/libnotimpl/Makefile @@ -6,8 +6,9 @@ # include $(TOPDIR)/rules.mk -PKG_NAME := libnotimpl -PKG_BUILD_DIR := $(TOOL_BUILD_DIR)/libnotimpl +PKG_NAME:=libnotimpl + +PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/libnotimpl include $(INCLUDE_DIR)/host-build.mk @@ -31,9 +32,7 @@ define Build/Install endef define Build/Clean - rm -rf \ - $(STAGING_DIR)/usr/lib/libnotimpl.a \ - $(PKG_BUILD_DIR) + rm -f $(STAGING_DIR)/usr/lib/libnotimpl.a endef $(eval $(call HostBuild)) -- cgit v1.2.3 From 44af1866aa41cfbbad48583106cb82201ded4fcb Mon Sep 17 00:00:00 2001 From: nbd Date: Wed, 27 Sep 2006 14:06:46 +0000 Subject: move tools from toolchain/ to tools/ git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4866 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/Makefile b/toolchain/libnotimpl/Makefile index d55bf4e3f..85156723b 100644 --- a/toolchain/libnotimpl/Makefile +++ b/toolchain/libnotimpl/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libnotimpl -PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/libnotimpl +PKG_BUILD_DIR:=$(TOOLCHAIN_BUILD_DIR)/libnotimpl include $(INCLUDE_DIR)/host-build.mk -- cgit v1.2.3 From a22828ce2bdad612bab9f9098a0d1bcec4ce37bf Mon Sep 17 00:00:00 2001 From: nico Date: Sat, 7 Oct 2006 09:59:42 +0000 Subject: fix typo git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4941 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- toolchain/libnotimpl/src/math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolchain/libnotimpl') diff --git a/toolchain/libnotimpl/src/math.c b/toolchain/libnotimpl/src/math.c index a16ea740e..5bfcb9532 100644 --- a/toolchain/libnotimpl/src/math.c +++ b/toolchain/libnotimpl/src/math.c @@ -43,7 +43,7 @@ #ifdef __STDC__ float ceilf(float x) #else - float rintf(x) + float ceilf(x) float x; #endif { -- cgit v1.2.3