Skip to content

Commit

Permalink
dev-util/bootconfig: QA, respect CFLAGS/LDFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
dlan17 committed Jun 17, 2022
1 parent 4528813 commit b28ced3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dev-util/bootconfig/files/bootconfig-5.18-cflags.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/Makefile b/Makefile
index 566c3e0..21818c7 100644
index 566c3e0..aa65fd7 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ srctree := $(patsubst %/,%,$(dir $(srctree)))
Expand All @@ -11,3 +11,12 @@ index 566c3e0..21818c7 100644

ALL_TARGETS := bootconfig
ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
@@ -18,7 +18,7 @@ ALL_PROGRAMS := $(patsubst %,$(OUTPUT)%,$(ALL_TARGETS))
all: $(ALL_PROGRAMS) test

$(OUTPUT)bootconfig: main.c include/linux/bootconfig.h $(LIBSRC)
- $(CC) $(filter %.c,$^) $(CFLAGS) -o $@
+ $(CC) $(filter %.c,$^) $(CFLAGS) $(LDFLAGS) -o $@

test: $(ALL_PROGRAMS) test-bootconfig.sh
./test-bootconfig.sh $(OUTPUT)

0 comments on commit b28ced3

Please sign in to comment.