Skip to content

Commit

Permalink
Updated Linux build files and fixed a string formatting warning in He…
Browse files Browse the repository at this point in the history
…imdall Frontend.
  • Loading branch information
Benjamin-Dobell authored and Benjamin Dobell committed Mar 9, 2013
1 parent ef7c9a6 commit f7f2917
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 28 deletions.
2 changes: 1 addition & 1 deletion heimdall-frontend/Source/Packaging.cpp
Expand Up @@ -301,7 +301,7 @@ bool Packaging::WriteTarEntry(const QString& filePath, QTemporaryFile *tarFile,

// Note: We don't support base-256 encoding. Support could be added later.
sprintf(tarHeader.fields.size, "%011llo", file.size());
sprintf(tarHeader.fields.modifiedTime, "%011llo", qtFileInfo.lastModified().toTime_t());
sprintf(tarHeader.fields.modifiedTime, "%u", qtFileInfo.lastModified().toTime_t());

// Regular File
tarHeader.fields.typeFlag = '0';
Expand Down
3 changes: 1 addition & 2 deletions heimdall/Makefile.am
Expand Up @@ -9,7 +9,6 @@ heimdall_SOURCES = source/Arguments.cpp \
source/ClosePcScreenAction.cpp \
source/DetectAction.cpp \
source/DownloadPitAction.cpp \
source/DumpAction.cpp \
source/FlashAction.cpp \
source/HelpAction.cpp \
source/InfoAction.cpp \
Expand All @@ -31,7 +30,7 @@ install-data-hook:
@echo "IMPORTANT - You must reboot your machine or execute the following as root:"

if UDEVADM
@echo "udevadm control --reload_rules"
@echo "udevadm control --reload-rules"
else
@echo "service udev restart"
endif
Expand Down
11 changes: 3 additions & 8 deletions heimdall/Makefile.in
Expand Up @@ -60,7 +60,7 @@ am_heimdall_OBJECTS = source/Arguments.$(OBJEXT) \
source/BridgeManager.$(OBJEXT) \
source/ClosePcScreenAction.$(OBJEXT) \
source/DetectAction.$(OBJEXT) \
source/DownloadPitAction.$(OBJEXT) source/DumpAction.$(OBJEXT) \
source/DownloadPitAction.$(OBJEXT) \
source/FlashAction.$(OBJEXT) source/HelpAction.$(OBJEXT) \
source/InfoAction.$(OBJEXT) source/Interface.$(OBJEXT) \
source/main.$(OBJEXT) source/PrintPitAction.$(OBJEXT) \
Expand Down Expand Up @@ -252,7 +252,6 @@ heimdall_SOURCES = source/Arguments.cpp \
source/ClosePcScreenAction.cpp \
source/DetectAction.cpp \
source/DownloadPitAction.cpp \
source/DumpAction.cpp \
source/FlashAction.cpp \
source/HelpAction.cpp \
source/InfoAction.cpp \
Expand Down Expand Up @@ -381,8 +380,6 @@ source/DetectAction.$(OBJEXT): source/$(am__dirstamp) \
source/$(DEPDIR)/$(am__dirstamp)
source/DownloadPitAction.$(OBJEXT): source/$(am__dirstamp) \
source/$(DEPDIR)/$(am__dirstamp)
source/DumpAction.$(OBJEXT): source/$(am__dirstamp) \
source/$(DEPDIR)/$(am__dirstamp)
source/FlashAction.$(OBJEXT): source/$(am__dirstamp) \
source/$(DEPDIR)/$(am__dirstamp)
source/HelpAction.$(OBJEXT): source/$(am__dirstamp) \
Expand Down Expand Up @@ -410,7 +407,6 @@ mostlyclean-compile:
-rm -f source/ClosePcScreenAction.$(OBJEXT)
-rm -f source/DetectAction.$(OBJEXT)
-rm -f source/DownloadPitAction.$(OBJEXT)
-rm -f source/DumpAction.$(OBJEXT)
-rm -f source/FlashAction.$(OBJEXT)
-rm -f source/HelpAction.$(OBJEXT)
-rm -f source/InfoAction.$(OBJEXT)
Expand All @@ -428,7 +424,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@source/$(DEPDIR)/ClosePcScreenAction.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@source/$(DEPDIR)/DetectAction.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@source/$(DEPDIR)/DownloadPitAction.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@source/$(DEPDIR)/DumpAction.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@source/$(DEPDIR)/FlashAction.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@source/$(DEPDIR)/HelpAction.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@source/$(DEPDIR)/InfoAction.Po@am__quote@
Expand Down Expand Up @@ -635,7 +630,7 @@ distcheck: dist
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir); chmod a+w $(distdir)
chmod -R a-w $(distdir); chmod u+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
Expand Down Expand Up @@ -824,7 +819,7 @@ uninstall-am: uninstall-binPROGRAMS uninstall-udevrulesDATA
@LINUXTARGET_TRUE@ @echo ""
@LINUXTARGET_TRUE@ @echo "IMPORTANT - You must reboot your machine or execute the following as root:"

@LINUXTARGET_TRUE@@UDEVADM_TRUE@ @echo "udevadm control --reload_rules"
@LINUXTARGET_TRUE@@UDEVADM_TRUE@ @echo "udevadm control --reload-rules"
@LINUXTARGET_TRUE@@UDEVADM_FALSE@ @echo "service udev restart"
@LINUXTARGET_TRUE@ @echo ""

Expand Down
4 changes: 2 additions & 2 deletions heimdall/autom4te.cache/output.0
Expand Up @@ -2298,7 +2298,7 @@ do
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_udevadminstalled=""
ac_cv_prog_udevadminstalled=""yes""
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
Expand Down Expand Up @@ -15646,7 +15646,7 @@ else
LINUXTARGET_FALSE=
fi

if test x$udevadmninstalled = xtrue; then
if test x$udevadminstalled = x"yes"; then
UDEVADM_TRUE=
UDEVADM_FALSE='#'
else
Expand Down
4 changes: 2 additions & 2 deletions heimdall/autom4te.cache/output.1
Expand Up @@ -2298,7 +2298,7 @@ do
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_udevadminstalled=""
ac_cv_prog_udevadminstalled=""yes""
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
Expand Down Expand Up @@ -15642,7 +15642,7 @@ else
LINUXTARGET_FALSE=
fi

if test x$udevadmninstalled = xtrue; then
if test x$udevadminstalled = x"yes"; then
UDEVADM_TRUE=
UDEVADM_FALSE='#'
else
Expand Down
5 changes: 1 addition & 4 deletions heimdall/autom4te.cache/traces.0
Expand Up @@ -2247,9 +2247,6 @@ m4trace:configure.ac:3: -1- m4_pattern_allow([^DEPS_LIBS$])
m4trace:configure.ac:3: -1- PKG_CHECK_EXISTS([libusb-1.0 >= 1.0.8], [pkg_cv_[]DEPS_CFLAGS=`$PKG_CONFIG --[]cflags "libusb-1.0 >= 1.0.8" 2>/dev/null`], [pkg_failed=yes])
m4trace:configure.ac:3: -1- PKG_CHECK_EXISTS([libusb-1.0 >= 1.0.8], [pkg_cv_[]DEPS_LIBS=`$PKG_CONFIG --[]libs "libusb-1.0 >= 1.0.8" 2>/dev/null`], [pkg_failed=yes])
m4trace:configure.ac:3: -1- _PKG_SHORT_ERRORS_SUPPORTED
m4trace:configure.ac:4: -1- _m4_warn([obsolete], [The macro `AC_PROGRAM_CHECK' is obsolete.
You should run autoupdate.], [../../lib/autoconf/oldnames.m4:62: AC_PROGRAM_CHECK is expanded from...
configure.ac:4: the top level])
m4trace:configure.ac:4: -1- m4_pattern_allow([^udevadminstalled$])
m4trace:configure.ac:5: -1- m4_pattern_allow([^build$])
m4trace:configure.ac:5: -1- m4_pattern_allow([^build_cpu$])
Expand Down Expand Up @@ -2497,7 +2494,7 @@ m4trace:configure.ac:41: -1- m4_pattern_allow([^LINUXTARGET_TRUE$])
m4trace:configure.ac:41: -1- m4_pattern_allow([^LINUXTARGET_FALSE$])
m4trace:configure.ac:41: -1- _AM_SUBST_NOTMAKE([LINUXTARGET_TRUE])
m4trace:configure.ac:41: -1- _AM_SUBST_NOTMAKE([LINUXTARGET_FALSE])
m4trace:configure.ac:42: -1- AM_CONDITIONAL([UDEVADM], [test x$udevadmninstalled = xtrue])
m4trace:configure.ac:42: -1- AM_CONDITIONAL([UDEVADM], [test x$udevadminstalled = x"yes"])
m4trace:configure.ac:42: -1- m4_pattern_allow([^UDEVADM_TRUE$])
m4trace:configure.ac:42: -1- m4_pattern_allow([^UDEVADM_FALSE$])
m4trace:configure.ac:42: -1- _AM_SUBST_NOTMAKE([UDEVADM_TRUE])
Expand Down
5 changes: 1 addition & 4 deletions heimdall/autom4te.cache/traces.1
Expand Up @@ -153,9 +153,6 @@ m4trace:configure.ac:3: -1- m4_pattern_allow([^DEPS_CFLAGS$])
m4trace:configure.ac:3: -1- AC_SUBST([DEPS_LIBS])
m4trace:configure.ac:3: -1- AC_SUBST_TRACE([DEPS_LIBS])
m4trace:configure.ac:3: -1- m4_pattern_allow([^DEPS_LIBS$])
m4trace:configure.ac:4: -1- _m4_warn([obsolete], [The macro `AC_PROGRAM_CHECK' is obsolete.
You should run autoupdate.], [../../lib/autoconf/oldnames.m4:62: AC_PROGRAM_CHECK is expanded from...
configure.ac:4: the top level])
m4trace:configure.ac:4: -1- AC_SUBST([udevadminstalled])
m4trace:configure.ac:4: -1- AC_SUBST_TRACE([udevadminstalled])
m4trace:configure.ac:4: -1- m4_pattern_allow([^udevadminstalled$])
Expand Down Expand Up @@ -588,7 +585,7 @@ m4trace:configure.ac:41: -1- AC_SUBST_TRACE([LINUXTARGET_FALSE])
m4trace:configure.ac:41: -1- m4_pattern_allow([^LINUXTARGET_FALSE$])
m4trace:configure.ac:41: -1- _AM_SUBST_NOTMAKE([LINUXTARGET_TRUE])
m4trace:configure.ac:41: -1- _AM_SUBST_NOTMAKE([LINUXTARGET_FALSE])
m4trace:configure.ac:42: -1- AM_CONDITIONAL([UDEVADM], [test x$udevadmninstalled = xtrue])
m4trace:configure.ac:42: -1- AM_CONDITIONAL([UDEVADM], [test x$udevadminstalled = x"yes"])
m4trace:configure.ac:42: -1- AC_SUBST([UDEVADM_TRUE])
m4trace:configure.ac:42: -1- AC_SUBST_TRACE([UDEVADM_TRUE])
m4trace:configure.ac:42: -1- m4_pattern_allow([^UDEVADM_TRUE$])
Expand Down
4 changes: 2 additions & 2 deletions heimdall/configure
Expand Up @@ -2298,7 +2298,7 @@ do
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_udevadminstalled=""
ac_cv_prog_udevadminstalled=""yes""
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
Expand Down Expand Up @@ -15642,7 +15642,7 @@ else
LINUXTARGET_FALSE=
fi

if test x$udevadmninstalled = xtrue; then
if test x$udevadminstalled = x"yes"; then
UDEVADM_TRUE=
UDEVADM_FALSE='#'
else
Expand Down
4 changes: 2 additions & 2 deletions heimdall/configure.ac
@@ -1,7 +1,7 @@
AC_INIT([Heimdall], [1.3], [bug-report@glassechidna.com.au], [heimdall], [http://www.glassechidna.com.au/])
AC_PREREQ([2.59])
PKG_CHECK_MODULES([DEPS], [libusb-1.0 >= 1.0.8])
AC_PROGRAM_CHECK(udevadminstalled, udevadm)
AC_CHECK_PROG(udevadminstalled, udevadm, "yes")
AC_CANONICAL_TARGET
AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign])
AC_CONFIG_MACRO_DIR([m4])
Expand Down Expand Up @@ -39,7 +39,7 @@ case $target in
esac

AM_CONDITIONAL([LINUXTARGET], [test x$linuxtarget = xtrue])
AM_CONDITIONAL([UDEVADM], [test x$udevadmninstalled = xtrue])
AM_CONDITIONAL([UDEVADM], [test x$udevadminstalled = x"yes"])

AC_C_BIGENDIAN

Expand Down
2 changes: 1 addition & 1 deletion libpit/Makefile.in
Expand Up @@ -533,7 +533,7 @@ distcheck: dist
*.zip*) \
unzip $(distdir).zip ;;\
esac
chmod -R a-w $(distdir); chmod a+w $(distdir)
chmod -R a-w $(distdir); chmod u+w $(distdir)
mkdir $(distdir)/_build
mkdir $(distdir)/_inst
chmod a-w $(distdir)
Expand Down
Empty file modified libpit/config.guess 100644 → 100755
Empty file.
Empty file modified libpit/config.sub 100644 → 100755
Empty file.
Empty file modified libpit/depcomp 100644 → 100755
Empty file.
Empty file modified libpit/missing 100644 → 100755
Empty file.

0 comments on commit f7f2917

Please sign in to comment.