author | kergoth <kergoth> | 2003-04-22 20:21:20 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-22 20:21:20 (UTC) |
commit | e3ef0f8587b10bf242d8077609988e06a37bcae5 (patch) (side-by-side diff) | |
tree | 89a270cdde36fdb406fa17f38be429a377545dd0 | |
parent | ccec87cf3e7192c0a3987aa3486668e89b1662a4 (diff) | |
download | opie-e3ef0f8587b10bf242d8077609988e06a37bcae5.zip opie-e3ef0f8587b10bf242d8077609988e06a37bcae5.tar.gz opie-e3ef0f8587b10bf242d8077609988e06a37bcae5.tar.bz2 |
Set strip binary appropriately, based on target selection for ipk creation
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | Vars.make | 22 |
2 files changed, 23 insertions, 10 deletions
@@ -22,7 +22,5 @@ configs += $(TOPDIR)/core/applets/config.in $(TOPDIR)/core/apps/config.in $(TOPD all : $(TOPDIR)/.config -STRIP=arm-linux-strip - -ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE +ipks: $(OPIEDIR)/scripts/subst $(OPIEDIR)/scripts/filesubst FORCE $(TOPDIR)/.config @find $(OPIEDIR)/ -type f -name \*.control | ( for ctrl in `cat`; do \ prerm=`echo $$ctrl|sed -e 's,\.control$$,.prerm,'`; \ @@ -108,11 +106,4 @@ endif SUBDIRS = $(subdir-y) -export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) - -ifdef CONFIG_OPTIMIZATIONS -export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) -export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) -endif - all clean install ipk: $(SUBDIRS) @@ -12,4 +12,8 @@ ifeq ($(IPK_DIR),) endif +ifneq ($(wildcard $(TOPDIR)/.config),) + include $(TOPDIR)/.config +endif + export QMAKE:=$(OPIEDIR)/qmake/qmake export QMAKESPECSDIR=$(OPIEDIR)/mkspecs @@ -62,2 +66,20 @@ export QTE_VERSION export PATH:=$(OPIEDIR)/scripts:$(PATH) +export QMAKESPEC=$(QMAKESPECSDIR)/$(patsubst "%",%,$(CONFIG_SPECFILE)) + +ifdef CONFIG_OPTIMIZATIONS +export CFLAGS_RELEASE=$(patsubst "%,%,$(CONFIG_OPTIMIZATIONS)) +export CFLAGS_RELEASE:=$(patsubst %",%,$(CFLAGS_RELEASE)) +endif + +ifeq ($(STRIP),) + ifneq ($(CONFIG_TARGET_X86),) + STRIP=strip + endif + ifneq ($(CONFIG_TARGET_IPAQ),) + STRIP=arm-linux-strip + endif + ifneq ($(CONFIG_TARGET_SHARP),) + STRIP=arm-linux-strip + endif +endif |