Skip to content

Commit

Permalink
add README and fix hostbuild warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
coolsnowwolf committed Mar 6, 2018
1 parent 25d6d08 commit 2377b9e
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 63 deletions.
35 changes: 31 additions & 4 deletions README
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
This is the buildsystem for the OpenWrt Linux distribution.
Welcome to Lean's git source of Gargoyle and packages

中文:如何编译自己需要的 石像鬼 Gargoyle 固件

默认双界面,80 是石像鬼,8080 是 luci,中文界面,默认密码为 password

编译命令如下:

1. 首先装好 Ubuntu 64bit,推荐 Ubuntu 14 LTS x64

2. 命令行输入 sudo apt-get update ,然后输入
sudo apt-get install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev

3. git clone https://github.com/coolsnowwolf/gargoyle 命令下载好源代码,然后 cd gargoyle 进入目录

4. ./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig

5. 最后选好你要的路由,输入 make -j1 V=s (-j1 后面是线程数。第一次编译推荐用单线程,国内请尽量全局科学上网)即可开始编译你要的固件了。

本套代码保证肯定可以编译成功。里面包括了 R7.5 所有源代码,包括 IPK 的。

你可以自由使用,但源码编译二次发布请注明我的 GitHub 仓库链接。谢谢合作!

特别提示:
1. 源代码中绝不含任何后门和可以监控或者劫持你的 HTTPS 的闭源软件,SSL 安全是互联网最后的壁垒。安全干净才是固件应该做到的。
2.如果你自认为 Koolshare 论坛或者其固件的脑残粉,本人不欢迎你使用本源代码。所以如果你是,那么使用过程中遇到任何问题本人概不回应。
3.如有问题需要讨论,欢迎加入 QQ 讨论群:Gargoyle OpenWrt 编译大群 ,号码 610530025 ,加群链接 https://jq.qq.com/?_wv=1027&k=5eA89Wv

Please use "make menuconfig" to choose your preferred
configuration for the toolchain and firmware.
Expand All @@ -22,8 +50,7 @@ To build your own firmware you need to have access to a Linux, BSD or MacOSX sys
the lack of case sensitiveness in the file system.


Sunshine!
Your OpenWrt Community
http://www.openwrt.org

Note: Addition Lean's private package source code in ./package/lean directory. Use it under GPL v3.

GPLv3 is compatible with more licenses than GPLv2: it allows you to make combinations with code that has specific kinds of additional requirements that are not in GPLv3 itself. Section 7 has more information about this, including the list of additional requirements that are permitted.
48 changes: 42 additions & 6 deletions package/gettext-full/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2006-2012 OpenWrt.org
# Copyright (C) 2006-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
Expand All @@ -8,19 +8,26 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=gettext-full
PKG_VERSION:=0.18.1.1
PKG_RELEASE:=2
PKG_VERSION:=0.19.8.1
PKG_RELEASE:=1

PKG_SOURCE:=gettext-$(PKG_VERSION).tar.gz
PKG_SOURCE:=gettext-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNU/gettext
PKG_MD5SUM:=3dd55b952826d2b32f51308f2f91aa89
PKG_HASH:=105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4
PKG_BUILD_DIR:=$(BUILD_DIR)/gettext-$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/gettext-$(PKG_VERSION)

PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]>
PKG_LICENSE:=GPL-3.0+
PKG_CPE_ID:=cpe:/a:gnu:gettext

PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=0
PKG_BUILD_DEPENDS:=gettext-full/host

include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk

define Package/libintl-full
SECTION:=libs
Expand All @@ -30,20 +37,46 @@ define Package/libintl-full
endef

TARGET_CFLAGS += $(FPIC)
ifneq ($(HOST_OS),Linux)
TARGET_CFLAGS += -I$(STAGING_DIR_HOSTPKG)/include
endif
ifdef CONFIG_USE_MUSL
TARGET_CFLAGS += -D__UCLIBC__
endif

CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-libasprintf \
--disable-rpath \
--enable-nls \
--disable-java \
--disable-native-java \
--disable-openmp \
--disable-curses \
--with-included-gettext \
--without-libintl-prefix \
--without-libexpat-prefix \
--without-emacs

HOST_CONFIGURE_ARGS += \
--disable-shared \
--enable-static \
--disable-libasprintf \
--disable-rpath \
--disable-java \
--disable-native-java \
--disable-openmp \
--without-emacs \
--without-libxml2-prefix


HOST_CONFIGURE_VARS += \
EMACS="no" \
am_cv_lib_iconv=no \
am_cv_func_iconv=no \
ac_cv_header_iconv_h=no \

define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib/libintl-full/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/libintl.h $(1)/usr/lib/libintl-full/include/
Expand All @@ -53,11 +86,14 @@ define Build/InstallDev

$(INSTALL_DIR) $(1)/usr/share/aclocal
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/

$(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
endef

define Package/libintl-full/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libintl.so* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,libintl-full))
$(eval $(call HostBuild))
$(eval $(call BuildPackage,libintl-full))
53 changes: 0 additions & 53 deletions package/multimedia/youtube-dl/Makefile

This file was deleted.

0 comments on commit 2377b9e

Please sign in to comment.