mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
LP-177 make deb src use precompiled firmware
removing the gcc-arm-none-eabi dependency
This commit is contained in:
parent
01d43ff7b4
commit
9a9a917ddd
@ -8,6 +8,7 @@ DEB_REV := 0$(DEB_DIST)1
|
|||||||
endif
|
endif
|
||||||
DEB_NAME := $(ORG_SMALL_NAME)
|
DEB_NAME := $(ORG_SMALL_NAME)
|
||||||
DEB_ORIG_SRC := $(PACKAGE_DIR)/$(DEB_NAME)_$(UPSTREAM_VER).orig.tar.gz
|
DEB_ORIG_SRC := $(PACKAGE_DIR)/$(DEB_NAME)_$(UPSTREAM_VER).orig.tar.gz
|
||||||
|
DEB_ORIG_FW := $(PACKAGE_DIR)/$(DEB_NAME)_$(UPSTREAM_VER).orig-firmware.tar.gz
|
||||||
DEB_PACKAGE_DIR := $(PACKAGE_DIR)/$(DEB_NAME)-$(UPSTREAM_VER)
|
DEB_PACKAGE_DIR := $(PACKAGE_DIR)/$(DEB_NAME)-$(UPSTREAM_VER)
|
||||||
DEB_ARCH := $(shell dpkg --print-architecture)
|
DEB_ARCH := $(shell dpkg --print-architecture)
|
||||||
DEB_PACKAGE_NAME := $(DEB_NAME)_$(UPSTREAM_VER)-$(DEB_REV)_$(DEB_ARCH)
|
DEB_PACKAGE_NAME := $(DEB_NAME)_$(UPSTREAM_VER)-$(DEB_REV)_$(DEB_ARCH)
|
||||||
@ -39,6 +40,7 @@ PACKAGE_DEPS_SED := s/python.*/python/;s/{misc:Depends}.*/{misc:Depends}/;
|
|||||||
package: debian
|
package: debian
|
||||||
@$(ECHO) "Building Linux package, please wait..."
|
@$(ECHO) "Building Linux package, please wait..."
|
||||||
$(V1) sed -i -e "$(PACKAGE_DEPS_SED)" debian/control
|
$(V1) sed -i -e "$(PACKAGE_DEPS_SED)" debian/control
|
||||||
|
$(V1) sed -i -e 's/WITH_PREBUILT.*firmware//' debian/rules
|
||||||
$(V1) dpkg-buildpackage -b -us -uc -nc
|
$(V1) dpkg-buildpackage -b -us -uc -nc
|
||||||
$(V1) mv $(ROOT_DIR)/../$(DEB_PACKAGE_NAME).deb $(BUILD_DIR)
|
$(V1) mv $(ROOT_DIR)/../$(DEB_PACKAGE_NAME).deb $(BUILD_DIR)
|
||||||
$(V1) mv $(ROOT_DIR)/../$(DEB_PACKAGE_NAME).changes $(BUILD_DIR)
|
$(V1) mv $(ROOT_DIR)/../$(DEB_PACKAGE_NAME).changes $(BUILD_DIR)
|
||||||
@ -61,8 +63,12 @@ package_src: $(DEB_ORIG_SRC_NAME) $(DEB_PACKAGE_DIR)
|
|||||||
$(DEB_ORIG_SRC): $(DIST_TAR_GZ) | $(PACKAGE_DIR)
|
$(DEB_ORIG_SRC): $(DIST_TAR_GZ) | $(PACKAGE_DIR)
|
||||||
$(V1) cp $(DIST_TAR_GZ) $(DEB_ORIG_SRC)
|
$(V1) cp $(DIST_TAR_GZ) $(DEB_ORIG_SRC)
|
||||||
|
|
||||||
$(DEB_PACKAGE_DIR): $(DEB_ORIG_SRC) debian | $(PACKAGE_DIR)
|
$(DEB_ORIG_FW): $(FW_DIST_TAR_GZ) | $(PACKAGE_DIR)
|
||||||
|
$(V1) cp $(FW_DIST_TAR_GZ) $(DEB_ORIG_FW)
|
||||||
|
|
||||||
|
$(DEB_PACKAGE_DIR): $(DEB_ORIG_SRC) $(DEB_ORIG_FW) debian | $(PACKAGE_DIR)
|
||||||
$(V1) tar -xf $(DEB_ORIG_SRC) -C $(PACKAGE_DIR)
|
$(V1) tar -xf $(DEB_ORIG_SRC) -C $(PACKAGE_DIR)
|
||||||
|
$(V1) tar -xf $(DEB_ORIG_FW) -C $(PACKAGE_DIR)/$(PACKAGE_NAME)
|
||||||
$(V1) mv debian $(PACKAGE_DIR)/$(PACKAGE_NAME)
|
$(V1) mv debian $(PACKAGE_DIR)/$(PACKAGE_NAME)
|
||||||
$(V1) rm -rf $(DEB_PACKAGE_DIR) && mv $(PACKAGE_DIR)/$(PACKAGE_NAME) $(DEB_PACKAGE_DIR)
|
$(V1) rm -rf $(DEB_PACKAGE_DIR) && mv $(PACKAGE_DIR)/$(PACKAGE_NAME) $(DEB_PACKAGE_DIR)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ Source: <NAME>
|
|||||||
Section: electronics
|
Section: electronics
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: The LibrePilot Project <<EMAIL>>
|
Maintainer: The LibrePilot Project <<EMAIL>>
|
||||||
Build-Depends: debhelper (>= 9), libudev-dev, libusb-1.0-0-dev, libsdl1.2-dev, python, gcc-arm-none-eabi (>=4.9), qt5-default, qttools5-dev-tools, libqt5svg5-dev, qtdeclarative5-dev, qml-module-qtquick-controls, libqt5serialport5-dev, qtmultimedia5-dev, qtscript5-dev, libqt5opengl5-dev
|
Build-Depends: debhelper (>= 9), libudev-dev, libusb-1.0-0-dev, libsdl1.2-dev, python, qt5-default, qttools5-dev-tools, libqt5svg5-dev, qtdeclarative5-dev, qml-module-qtquick-controls, libqt5serialport5-dev, qtmultimedia5-dev, qtscript5-dev, libqt5opengl5-dev
|
||||||
Standards-Version: 3.9.5
|
Standards-Version: 3.9.5
|
||||||
Homepage: <URL>
|
Homepage: <URL>
|
||||||
Vcs-Git: <GIT_URL>
|
Vcs-Git: <GIT_URL>
|
||||||
|
@ -12,7 +12,7 @@ export DH_OPTIONS
|
|||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
dh_auto_build -- opfw_resource gcs
|
dh_auto_build -- WITH_PREBUILT_FW=$(CURDIR)/firmware opfw_resource gcs
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
dh_auto_install -- prefix=/usr
|
dh_auto_install -- prefix=/usr
|
||||||
|
Loading…
Reference in New Issue
Block a user