Browse Source

Merge branch 'master' of git+ssh://openadk.org/git/openadk

Waldemar Brodkorb 15 years ago
parent
commit
fdd9e91504
5 changed files with 42 additions and 7 deletions
  1. 13 0
      Config.in
  2. 21 6
      mk/build.mk
  3. 1 1
      package/bitlbee/Makefile
  4. 2 0
      target/Config.in
  5. 5 0
      target/alix1c/files/etc/network/interfaces

+ 13 - 0
Config.in

@@ -7,6 +7,7 @@ config ADKVERSION
 
 mainmenu "OpenADK Configuration"
 
+
 config MODULES
 	bool
 	default y
@@ -90,6 +91,18 @@ config ADK_FORCE_PARALLEL
 	help
 	  Do not enable this! It's for testing purposes only.
 
+choice 
+prompt "Hostsystem (do not change!)"
+config ADK_HOST_LINUX
+	prompt "Linux"
+	boolean
+
+config ADK_HOST_FREEBSD
+	prompt "FreeBSD"
+	boolean
+
+endchoice
+
 endmenu
 
 source "target/Config.in"

+ 21 - 6
mk/build.mk

@@ -224,8 +224,17 @@ $(CONFIG)/mconf:
 	@$(MAKE) -C $(CONFIG)
 
 defconfig:
+ifeq (${OStype},Linux)
+	@echo ADK_HOST_LINUX=y > $(TOPDIR)/.defconfig
+endif
+ifeq (${OStype},FreeBSD)
+	@echo ADK_HOST_FREEBSD=y > $(TOPDIR)/.defconfig
+endif
 	@if [ ! -z "$(TARGET)" ];then \
-		grep "^config" target/Config.in |grep -i "$(TARGET)"|sed -e "s#^config \(.*\)#\1=y#" > $(TOPDIR)/.defconfig; \
+		grep "^config" target/Config.in \
+			|grep -i "$(TARGET)" \
+			|sed -e "s#^config \(.*\)#\1=y#" \
+			 >> $(TOPDIR)/.defconfig; \
 		for symbol in ${DEFCONFIG}; do \
 			echo $$symbol >> $(TOPDIR)/.defconfig; \
 		done; \
@@ -236,13 +245,17 @@ endif
 ifneq (,$(filter %_rescue,${TARGET}))
 	@echo ADK_LINUX_RESCUE=y >> $(TOPDIR)/.defconfig
 endif
-	@if [ ! -z "$(TARGET)" ];then \
-		$(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN); \
-	fi
+ifneq (,$(filter rb%,${TARGET}))
+	@echo ADK_LINUX_MIKROTIK=y >> $(TOPDIR)/.defconfig
+endif
+	@$(CONFIG)/conf -D .defconfig $(CONFIG_CONFIG_IN)
 
 modconfig:
 	@if [ ! -z "$(TARGET)" ];then \
-		grep "^config" target/Config.in |grep -i "$(TARGET)"|sed -e "s#^config \(.*\)#\1=y#" > $(TOPDIR)/all.config; \
+		grep "^config" target/Config.in \
+			|grep -i "$(TARGET)" \
+			|sed -e "s#^config \(.*\)#\1=y#" \
+			> $(TOPDIR)/all.config; \
 		for symbol in ${DEFCONFIG}; do \
 			echo $$symbol >> $(TOPDIR)/all.config; \
 		done; \
@@ -266,12 +279,14 @@ modconfig:
 			>> $(TOPDIR)/all.config; \
 	fi
 ifneq (,$(filter %_qemu,${TARGET}))
-
 	@echo ADK_LINUX_QEMU=y >> $(TOPDIR)/all.config
 endif
 ifneq (,$(filter %_rescue,${TARGET}))
 	@echo ADK_LINUX_RESCUE=y >> $(TOPDIR)/all.config
 endif
+ifneq (,$(filter rb%,${TARGET}))
+	@echo ADK_LINUX_MIKROTIK=y >> $(TOPDIR)/all.config
+endif
 
 menuconfig: $(CONFIG)/mconf defconfig
 	@$(CONFIG)/mconf $(CONFIG_CONFIG_IN)

+ 1 - 1
package/bitlbee/Makefile

@@ -23,7 +23,7 @@ $(eval $(call PKG_template,BITLBEE,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${P
 do-configure:
 		(cd $(WRKBUILD); \
 			$(TARGET_CONFIGURE_OPTS) \
-			CFLAGS="$(TARGET_CFLAGS)" \
+			CFLAGS="$(TARGET_CFLAGS) -fPIC" \
 			CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
 			LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
 			STAGING_DIR="$(STAGING_DIR)" \

+ 2 - 0
target/Config.in

@@ -789,4 +789,6 @@ config ADK_TARGET_PACKAGE_RPM
 
 endchoice
 
+
 endmenu
+

+ 5 - 0
target/alix1c/files/etc/network/interfaces

@@ -0,0 +1,5 @@
+auto lo
+iface lo inet loopback
+
+auto eth0
+iface eth0 inet dhcp