For improved reusability, testing etc.

Signed-off-by: Petr Štetiar <[email protected]>
---
 Makefile                   | 47 --------------------------------------
 src/crc32.h => crc32.h     |  0
 src/fwimage.h => fwimage.h |  0
 src/fwtool.c => fwtool.c   |  0
 src/utils.h => utils.h     |  0
 5 files changed, 47 deletions(-)
 delete mode 100644 Makefile
 rename src/crc32.h => crc32.h (100%)
 rename src/fwimage.h => fwimage.h (100%)
 rename src/fwtool.c => fwtool.c (100%)
 rename src/utils.h => utils.h (100%)

diff --git a/Makefile b/Makefile
deleted file mode 100644
index 283be8d77a0e..000000000000
--- a/Makefile
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# Copyright (C) Felix Fietkau <[email protected]>
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=fwtool
-PKG_RELEASE:=2
-
-PKG_FLAGS:=nonshared
-
-PKG_MAINTAINER := Felix Fietkau <[email protected]>
-PKG_BUILD_DEPENDS := fwtool/host
-
-include $(INCLUDE_DIR)/package.mk
-include $(INCLUDE_DIR)/host-build.mk
-
-HOST_BUILD_PREFIX:=$(STAGING_DIR_HOST)
-
-define Package/fwtool
-  SECTION:=utils
-  CATEGORY:=Base system
-  TITLE:=Utility for appending and extracting firmware metadata and signatures
-endef
-
-define Host/Compile
-       $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o $(HOST_BUILD_DIR)/fwtool 
./src/fwtool.c
-endef
-
-define Host/Install
-       $(INSTALL_BIN) $(HOST_BUILD_DIR)/fwtool $(1)/bin/
-endef
-
-define Build/Compile
-       $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -o 
$(PKG_BUILD_DIR)/fwtool ./src/fwtool.c
-endef
-
-define Package/fwtool/install
-       $(INSTALL_DIR) $(1)/usr/bin
-       $(INSTALL_BIN) $(PKG_BUILD_DIR)/fwtool $(1)/usr/bin/
-endef
-
-$(eval $(call HostBuild))
-$(eval $(call BuildPackage,fwtool))
diff --git a/src/crc32.h b/crc32.h
similarity index 100%
rename from src/crc32.h
rename to crc32.h
diff --git a/src/fwimage.h b/fwimage.h
similarity index 100%
rename from src/fwimage.h
rename to fwimage.h
diff --git a/src/fwtool.c b/fwtool.c
similarity index 100%
rename from src/fwtool.c
rename to fwtool.c
diff --git a/src/utils.h b/utils.h
similarity index 100%
rename from src/utils.h
rename to utils.h

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to