Externals - Fix prefix value (use DESTPATH)
authorJohn Hodge <[email protected]>
Sun, 9 Mar 2014 14:39:35 +0000 (22:39 +0800)
committerJohn Hodge <[email protected]>
Sun, 9 Mar 2014 14:39:35 +0000 (22:39 +0800)
Externals/common_automake.mk
Externals/config.mk
Externals/cross-compiler/Makefile
Externals/dropbear/Makefile
Externals/dropbear/patches/options.h.patch
Externals/sdl12/Makefile

index 8f0ba3c..70b1978 100644 (file)
@@ -28,5 +28,5 @@ $(BDIR)/Makefile: _patch $(CONFIGSCRIPT) ../common_automake.mk Makefile
 
 _build: $(BDIR)/Makefile
        PATH=$(PATH) make $(BTARGETS) -C $(BDIR)
-       PATH=$(PATH) make $(ITARGETS) -C $(BDIR)
+       PATH=$(PATH) make DESTDIR=$(OUTDIR) $(ITARGETS) -C $(BDIR)
 
index 26b9efb..3d7913b 100644 (file)
@@ -11,14 +11,17 @@ else
  $(error No BFD translation for $(ARCH) in Externals/config.mk)
 endif
 
-#PREFIX=$(ACESSDIR)/Externals/Output
-#EPREFIX=$(ACESSDIR)/Externals/Output/$(BFD)
-PREFIX=$(ACESSDIR)/Externals/Output/$(ARCH)
-EPREFIX=$(PREFIX)
+OUTDIR=$(ACESSDIR)/Externals/Output/$(ARCH)
+BUILD_OUTDIR=$(OUTDIR)-BUILD
 SYSROOT=$(ACESSDIR)/Externals/Output/sysroot-$(BFD)
-HOST=$(BFD)-pc-acess2
-PATH:=$(PREFIX)-BUILD/bin:$(PATH)
+
+PATH:=$(BUILD_OUTDIR)/bin:$(PATH)
 INCLUDE_DIR=$(SYSROOT)/usr/include
 
+# Runtime Options
+PREFIX=/Acess/usr/
+EPREFIX=$(PREFIX)
+HOST=$(BFD)-pc-acess2
+
 PARLEVEL ?= 1
 
index 30ebe34..9dde5d8 100644 (file)
@@ -15,7 +15,7 @@ TARGET=$(HOST)
 GCC_TARGETS := gcc target-libgcc
 # target-libstdc++-v3 
 
-PREFIX := $(PREFIX)-BUILD
+PREFIX := $(OUTDIR)-BUILD
 BDIR_GCC := build-$(ARCH)/gcc
 BDIR_BINUTILS := build-$(ARCH)/binutils
 
index 270815c..d9f59e8 100644 (file)
@@ -8,7 +8,7 @@ TARBALL_PATTERN := dropbear-*.tar.bz2
 TARBALL_TO_DIR_L := %.tar.bz2
 TARBALL_TO_DIR_R := %
 PATCHES := options.h config.sub
-CONFIGURE_ARGS = --with-zlib=$(PREFIX) --disable-utmp --disable-wtmp --disable-lastlog
+CONFIGURE_ARGS = --with-zlib=$(OUTDIR) --disable-utmp --disable-wtmp --disable-lastlog DSS_PRIV_FILENAME=/Acess/Conf/dropbear/host_key_dss RSA_PRIV_FILENAME=/Acess/Conf/dropbear/host_key_rsa MOTD_FILENAME=/Acess/Conf/dropbear/motd
 CONFIGURE_ENV = LIBS=-lpsocket
 BTARGETS = dbclient dropbear
 ITARGETS = inst_dbclient inst_dropbear
index 9ff95cb..0022eb9 100644 (file)
@@ -1,10 +1,24 @@
 --- options.h
 +++ options.h
-@@ -54,2 +54,2 @@
+@@ -23,6 +23,6 @@
+ #ifndef DSS_PRIV_FILENAME
+-#define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key"
++#define DSS_PRIV_FILENAME "/Acess/Conf/dropbear/host_key_dss"
+ #endif
+ #ifndef RSA_PRIV_FILENAME
+-#define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key"
++#define RSA_PRIV_FILENAME "/Acess/Conf/dropbear/host_key_rsa"
+ #endif
+@@ -55,2 +55,2 @@
  /* Enable X11 Forwarding - server only */
 -#define ENABLE_X11FWD
 +//#define ENABLE_X11FWD
-@@ -217,2 +217,2 @@
+@@ -163,3 +163,3 @@
+ #ifndef MOTD_FILENAME
+-#define MOTD_FILENAME "/etc/motd"
++#define MOTD_FILENAME "/Acess/Conf/dropbear/motd"
+ #endif
+@@ -216,2 +216,2 @@
   * rsa/dss key generation */
 -#define DROPBEAR_URANDOM_DEV "/dev/urandom"
 +#define DROPBEAR_URANDOM_DEV "/Devices/frandom"
index 30c17db..c247e60 100644 (file)
@@ -9,7 +9,7 @@ TARBALL_TO_DIR_L := %.tar.gz
 TARBALL_TO_DIR_R := %
 PATCHES := configure build-scripts/config.sub
 PATCHES += src/video/acess/ptyvideo.c src/video/SDL_video.c src/video/SDL_sysvideo.h
-CONFIGURE_ARGS = --includedir=$(INCLUDEDIR) --bindir=$(PREFIX)-BUILD/bin/
+CONFIGURE_ARGS = --includedir=$(INCLUDEDIR) --bindir=$(OUTDIR)-BUILD/bin/
 #AUTORECONF = yes
 
 include ../common_automake.mk

UCC git Repository :: git.ucc.asn.au