Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,21 @@ ifndef IMAGE
$(error IMAGE is not set. Please specify IMAGE=<image> when running make build or make build-dev)
endif

.PHONY: all build build-dev setup measure clean check-perms check-module
.PHONY: all build build-dev setup measure clean check-module

# Default target
all: build

# Ensure repo was cloned with correct permissions
check-perms: ## Check repository permissions
@scripts/check_perms.sh

# Setup dependencies (Linux only)
setup: ## Install dependencies (Linux only)
@scripts/setup_deps.sh

# Build module
build: check-perms setup ## Build the specified module
build: setup ## Build the specified module
$(WRAPPER) mkosi --force --image-id $(IMAGE) -I $(IMAGE).conf

# Build module with devtools profile
build-dev: check-perms setup ## Build module with development tools
build-dev: setup ## Build module with development tools
$(WRAPPER) mkosi --force --image-id $(IMAGE)-dev --profile=devtools -I $(IMAGE).conf

##@ Utilities
Expand Down
1 change: 1 addition & 0 deletions base/mkosi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ PostInstallationScripts=base/efi-stub.sh
SyncScripts=base/add-backports.sh
FinalizeScripts=base/debloat.sh
FinalizeScripts=base/remove-image-version.sh
SyncScripts=base/normalize-umask.sh

CleanPackageMetadata=true
Packages=kmod
Expand Down
3 changes: 3 additions & 0 deletions base/normalize-umask.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -euo pipefail
chmod -cR go-w "$SRCDIR"
33 changes: 0 additions & 33 deletions scripts/check_perms.sh

This file was deleted.