nvram: remove libnvram.so, it is unused and incompatible to the broadcom API anyway
authorFelix Fietkau <nbd@openwrt.org>
Sat, 13 Dec 2014 23:58:35 +0000 (23:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 13 Dec 2014 23:58:35 +0000 (23:58 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43698

package/utils/nvram/Makefile
package/utils/nvram/src/Makefile

index fe70e34669c2fd6b26d4ead43f3b4d8247287c7e..992f3366ba5440e8073497af562970cc4f7d3438 100644 (file)
@@ -42,19 +42,11 @@ define Build/Compile
                LDFLAGS="$(TARGET_LDFLAGS)"
 endef
 
-define Build/InstallDev
-       $(INSTALL_DIR) $(1)/usr/lib
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/libnvram.so.0.1 $(1)/usr/lib/
-       ln -s libnvram.so.0.1 $(1)/usr/lib/libnvram.so
-endef
-
 define Package/nvram/install
        $(INSTALL_DIR) $(1)/etc/init.d
        $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
        $(INSTALL_DIR) $(1)/usr/sbin
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
-       $(INSTALL_DIR) $(1)/usr/lib
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/libnvram.so.0.1 $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,nvram))
index 4872728baf6ce399b09af4533beb6fbb39f3e116..68a6354c00a03190ed1dd72c483b8f4c2b4201fe 100644 (file)
@@ -1,33 +1,7 @@
-CLI_FILENAME = nvram
+all: nvram
 
-LIB_VERMAJOR = 0
-LIB_VERMINOR = 1
-LIB_FILENAME = libnvram.so
-
-LIB_CFLAGS  = $(CFLAGS) -shared -fPIC
-LIB_LDFLAGS = $(LDFLAGS) -Wl,-soname,$(LIB_FILENAME).$(LIB_VERMAJOR).$(LIB_VERMINOR)
-
-CLI_CFLAGS  = $(CFLAGS)
-CLI_LDFLAGS = $(LDFLAGS)
-
-CLI_OBJ = cli.o
-LIB_OBJ = crc.o nvram.o
-
-all: cli libnvram
-
-cli: libnvram
-       $(CC) $(CLI_CFLAGS) -c -o cli.o cli.c
-       $(CC) -o $(CLI_FILENAME) $(CLI_LDFLAGS) $(CLI_OBJ) \
-               $(LIB_FILENAME).$(LIB_VERMAJOR).$(LIB_VERMINOR)
-
-cli.o: cli.c
-       $(CC) $(CLI_CFLAGS) -c -o $@ $<
-
-libnvram:
-       $(CC) $(LIB_CFLAGS) -c -o crc.o crc.c
-       $(CC) $(LIB_CFLAGS) -c -o nvram.o nvram.c
-       $(CC) $(LIB_CFLAGS) $(LIB_LDFLAGS) \
-               -o $(LIB_FILENAME).$(LIB_VERMAJOR).$(LIB_VERMINOR) $(LIB_OBJ)
+nvram:
+       $(CC) $(CFLAGS) -o $@ cli.c crc.c nvram.c $(LDFLAGS)
 
 clean:
-       rm -f $(CLI_FILENAME) $(LIB_FILENAME)* *.o
+       rm -f nvram