Temat: Kompilacja wlasnej paczki
Otoz chcialem skompilowac sobie wlasna paczke dctc no i kieruje sie tym co pisze cezary, a wiec:
http://ac2i.homelinux.com/dctc/
1. Stworzylem Makefila w katalogu
x@ubuntu:/openwrt/trunk/package/dctc$ 2. Chce zedytowac content na taki podany tutaj:
http://vivekian2.wordpress.com/2007/03/ … r-openwrt/
,ale co dokladnie tutaj trzeba zmienic, i czy cos w ogole, skad wziąśc wartości pod:
- PKG_MD5SUM
- SECTION:=
- CATEGORY:=
- $(MAKE) -C $(PKG_BUILD_DIR) \
CXX="$(TARGET_CROSS)g++"
endef
- no i foldery: These lines describe where your binary images are to be installed
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
#These lines concatanate the package name and list the URL location from which the package source code is to be downloaded
PKG_NAME:=commonclasses
PKG_VERSION:=0.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.cs.uh.edu/~vivekian/downloads/
#md5 can be computed using the md5sum utility available on linux
PKG_MD5SUM:=6607524493ff74de82cc114e32674d40
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
#These lines describe what your package does and its place in the menu config
define Package/commonclasses
SECTION:=net
CATEGORY:=Network
TITLE:=CommonClasses is a group of classes which are C++ wrappers around C socket functions
DESCRIPTION:=\
You can use this in your C++ code \\\
It will make your life easier \\\
It will save you time !
URL:=http://www.cs.uh.edu/~vivekian
endef
#For the compile rules you need to specify the cross compiler which needs to be used :
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
CXX="$(TARGET_CROSS)g++"
endef
#These lines describe where your binary images are to be installed – its the equivalent to make install
# This particular package is a library and the installation rules reflect it
define Package/commonclasses/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libcppsocket.so $(1)/usr/lib/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/SockException.h $(1)/usr/include/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/Socket.h $(1)/usr/include/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/SocketReaderWriter.h $(1)/usr/include/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/TcpSocket.h $(1)/usr/include/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/UdpSocket.h $(1)/usr/include/
endef
$(eval $(call BuildPackage,commonclasses))