Rework and organize the filesystem build

This commit is contained in:
SolidHal 2020-06-29 20:39:56 -07:00
parent 902280842c
commit 91731ae4dd
118 changed files with 174 additions and 81 deletions

View File

@ -1,8 +1,63 @@
filesystem_packages:
$(MAKE) -C packages all
ifndef FILESYSTEM_MK
FILESYSTEM_MK := 1
ifndef PRAWNOS_ROOT
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
endif
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
FS_BUILD_LOG := $(PRAWNOS_BUILD_LOGS)/fs-log.txt
PRAWNOS_FILESYSTEM_PACKAGES := $(PRAWNOS_FILESYSTEM)/packages
PACKAGES_BUILT := $(PRAWNOS_FILESYSTEM_PACKAGES)/.packages_built
.PHONY: filesystem \
pbuilder_create \
pbuilder_update \
filesystem_packages \
filesystem_packages_clean \
filesystem_packages_install
### Filesystem Image
filesystem: $(PRAWNOS_IMAGE_BASE)
### Packages
filesystem_packages: $(PRAWNOS_BUILD)
filesystem_packages_clean:
$(MAKE) -C packages clean
$(MAKE) -C $(PRAWNOS_FILESYSTEM_PACKAGES) clean
rm -f $(PRAWNOS_PACKAGES_BUILT)
filesystem_packages_install:
$(MAKE) -C packages INSTALL_TARGET=$(INSTALL_TARGET) install
ifndef INSTALL_TARGET
$(error INSTALL_TARGET is not set)
endif
$(MAKE) -C $(PRAWNOS_FILESYSTEM_PACKAGES) INSTALL_TARGET=$(INSTALL_TARGET) install
### Pbuilder
pbuilder_create: $(PBUILDER_CHROOT)
#TODO: should only update if not updated for a day
pbuilder_update: $(PBUILDER_CHROOT)
@echo UPDATING $(PBUILDER_CHROOT)
pbuilder update --basetgz $(PBUILDER_CHROOT) --configfile $(PBUILDER_RC)
### REAL TARGETS
$(PACKAGES_BUILT): $(PRAWNOS_BUILD)
$(MAKE) -C $(PRAWNOS_FILESYSTEM_PACKAGES) all
touch $(PACKAGES_BUILT)
$(PBUILDER_CHROOT): $(PRAWNOS_BUILD)
@echo BUILDING $(PBUILDER_CHROOT)
pbuilder create --basetgz $(PBUILDER_CHROOT) --configfile $(PBUILDER_RC)
$(PRAWNOS_IMAGE_BASE): $(PRAWNOS_BUILD) $(PACKAGES_BUILT)
rm -rf $(FS_BUILD_LOG)
$(PRAWNOS_FILESYSTEM_SCRIPTS_BUILD) $(KVER) $(DEBIAN_SUITE) $(PRAWNOS_IMAGE_BASE) $(PRAWNOS_ROOT) $(PRAWNOS_SHARED_SCRIPTS) $(PRAWNOS_FILESYSTEM_RESOURCES) 2>&1 | tee $(FS_BUILD_LOG)
endif

1
filesystem/packages/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.packages_built

View File

@ -1,3 +1,4 @@
.DEFAULT_GOAL := default
#import all shared make vars
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
@ -9,6 +10,9 @@ PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
PACKAGE_LOCAL_BUILD_DEPS :=
default: $(PACKAGE_NAME_DEB)
$(PACKAGE_NAME_DEB):
$(PRAWNOS_PACKAGE_SCRIPTS_PBUILD) $(PACKAGE_NAME_DEB) \
$(PBUILDER_VARS) \

View File

@ -1,3 +1,4 @@
.DEFAULT_GOAL := default
#import all shared make vars
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
@ -7,6 +8,8 @@ VERSION := $(shell cd src/; dpkg-parsechangelog --show-field Version)
PACKAGE_NAME := font-source-code-pro_$(VERSION)_all
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
default: $(PACKAGE_NAME_DEB)
$(PACKAGE_NAME_DEB):
@echo Building $@
cd src/; debuild -us -uc

View File

@ -1,3 +1,4 @@
.DEFAULT_GOAL := default
#import all shared make vars
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
@ -9,6 +10,8 @@ PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
PACKAGE_LOCAL_BUILD_DEPS := flashmap
default: $(PACKAGE_NAME_DEB)
$(PACKAGE_NAME_DEB):
$(PRAWNOS_PACKAGE_SCRIPTS_PBUILD) $(PACKAGE_NAME_DEB) \
$(PBUILDER_VARS) \

View File

@ -1,3 +1,4 @@
.DEFAULT_GOAL := default
#import all shared make vars
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
@ -9,6 +10,8 @@ PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
PACKAGE_LOCAL_BUILD_DEPS :=
default: $(PACKAGE_NAME_DEB)
$(PACKAGE_NAME_DEB):
$(PRAWNOS_PACKAGE_SCRIPTS_PBUILD) $(PACKAGE_NAME_DEB) \
$(PBUILDER_VARS) \

View File

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 11 MiB

View File

Before

Width:  |  Height:  |  Size: 5.4 MiB

After

Width:  |  Height:  |  Size: 5.4 MiB

View File

Before

Width:  |  Height:  |  Size: 5.3 MiB

After

Width:  |  Height:  |  Size: 5.3 MiB

View File

Before

Width:  |  Height:  |  Size: 9.3 MiB

After

Width:  |  Height:  |  Size: 9.3 MiB

View File

Before

Width:  |  Height:  |  Size: 8.8 MiB

After

Width:  |  Height:  |  Size: 8.8 MiB

View File

Before

Width:  |  Height:  |  Size: 10 MiB

After

Width:  |  Height:  |  Size: 10 MiB

View File

Before

Width:  |  Height:  |  Size: 4.3 MiB

After

Width:  |  Height:  |  Size: 4.3 MiB

View File

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

Before

Width:  |  Height:  |  Size: 11 MiB

After

Width:  |  Height:  |  Size: 11 MiB

View File

Before

Width:  |  Height:  |  Size: 4.5 MiB

After

Width:  |  Height:  |  Size: 4.5 MiB

View File

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

View File

Before

Width:  |  Height:  |  Size: 6.5 MiB

After

Width:  |  Height:  |  Size: 6.5 MiB

View File

Before

Width:  |  Height:  |  Size: 5.6 MiB

After

Width:  |  Height:  |  Size: 5.6 MiB

View File

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

Before

Width:  |  Height:  |  Size: 61 MiB

After

Width:  |  Height:  |  Size: 61 MiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Some files were not shown because too many files have changed in this diff Show More