summaryrefslogtreecommitdiff
path: root/kconfig
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-06-07 03:06:04 (GMT)
committerAlexey Neyman <stilor@att.net>2017-06-08 05:38:53 (GMT)
commit1b4e784a0ba636646def1db5ca012fd54ee7a81c (patch)
tree175814b416570817c9a16f3174276ea4cce78bbf /kconfig
parent10089f3c9aa41bdf12f2ca1d85d052f347dd38d5 (diff)
Fix debuild warnings/errors
- Update .gitignore, do not place .gitignore into directories installed in bulk - Remove executable permissions and shebangs from the scripts that are supposed to be invoked only via ct-ng frontent; prepend them with $(bash). Despite what showSamples.sh said, it already has some bashisms. - Remove --with autotools-dev and override dh_update_autotools_config to avoid having config.{sub,guess} clobbered with older versions - Install bash completion where Debian (now) expects it - Update man page to use .\" as the comment delimiter, instead of undefined macro (."); also, minor text edits. - Install kconfig.mk without execute permission. - Remove shell wrappers from 170-localedef-fix-trampoline.patch, we do not use that for applying patches - Revoke execute permissions on 210-expat.sh - Get flags from dpkg-buildflags if available Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'kconfig')
-rw-r--r--kconfig/.gitignore1
-rw-r--r--kconfig/Makefile.in (renamed from kconfig/Makefile)13
2 files changed, 12 insertions, 2 deletions
diff --git a/kconfig/.gitignore b/kconfig/.gitignore
index 7f79a8d..473d174 100644
--- a/kconfig/.gitignore
+++ b/kconfig/.gitignore
@@ -6,3 +6,4 @@ zconf.lex.c
zconf.hash.c
zconf.tab.c
*.exe
+Makefile
diff --git a/kconfig/Makefile b/kconfig/Makefile.in
index 4a33ac8..403d04b 100644
--- a/kconfig/Makefile
+++ b/kconfig/Makefile.in
@@ -15,6 +15,12 @@ CFLAGS = -DCONFIG_=\"CT_\" -DPACKAGE="\"crosstool-NG $(VERSION)\"" \
-DGPERF_LEN_TYPE="$(gperf_len_type)"
LDFLAGS = $(INTL_LIBS)
+ifneq (@DPKG_BUILDFLAGS@,)
+CFLAGS += $(shell @DPKG_BUILDFLAGS@ --get CPPFLAGS) \
+ $(shell @DPKG_BUILDFLAGS@ --get CFLAGS)
+LDFLAGS += $(shell @DPKG_BUILDFLAGS@ --get LDFLAGS)
+endif
+
# Compiler flags to use gettext
ifeq ($(gettext),)
INTL_CFLAGS = -Wno-format-security -DKBUILD_NO_NLS
@@ -103,8 +109,11 @@ conf: $(COMMON_OBJ) $(conf_OBJ)
# Installation
install: $(patsubst %,install-%,$(PROGS)) install-kconfig.mk
-install-%: %
- $(call __silent,INSTALL,$<)install $< $(DESTDIR)/$<
+$(patsubst %,install-%,$(PROGS)): install-%: %
+ $(call __silent,INSTALL,$<)install -m 0755 $< $(DESTDIR)/$<
+
+install-kconfig.mk: kconfig.mk
+ $(call __silent,INSTALL,$<)install -m 0644 $< $(DESTDIR)/$<
#-----------------------------------------------------------
# Cleaning up the mess...