-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[build]: Move Systemd service start to systemd generator #3172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 19 commits
a74b0c5
3babce6
669895a
4000ef3
c4e9a74
5094522
a0a2d3e
4cfbed2
5bce998
dfd753d
1f809d0
14b8f6e
193855f
c65ff64
03e02f1
ccec6d4
093face
52f1d74
1d48819
75002b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,7 @@ SONIC_RAW_IMAGE = sonic-broadcom.raw | |
| $(SONIC_RAW_IMAGE)_MACHINE = broadcom | ||
| $(SONIC_RAW_IMAGE)_IMAGE_TYPE = raw | ||
| $(SONIC_RAW_IMAGE)_INSTALLS += $(BRCM_OPENNSL_KERNEL) | ||
| $(SONIC_ONE_ABOOT_IMAGE)_INSTALLS += $(SYSTEMD_SONIC_GENERATOR) | ||
|
||
| $(SONIC_RAW_IMAGE)_LAZY_INSTALLS += $($(SONIC_ONE_IMAGE)_LAZY_INSTALLS) | ||
| $(SONIC_RAW_IMAGE)_DOCKERS += $(SONIC_INSTALL_DOCKER_IMAGES) | ||
| SONIC_INSTALLERS += $(SONIC_RAW_IMAGE) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| SYSTEMD_SONIC_GENERATOR = systemd-sonic-generator_1.0.0_$(CONFIGURED_ARCH).deb | ||
| $(SYSTEMD_SONIC_GENERATOR)_SRC_PATH = $(SRC_PATH)/systemd-sonic-generator | ||
| SONIC_MAKE_DEBS += $(SYSTEMD_SONIC_GENERATOR) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| CC=gcc | ||
| CFLAGS=-std=gnu99 | ||
|
|
||
| BINARY = systemd-sonic-generator | ||
| MAIN_TARGET = $(BINARY)_1.0.0_$(CONFIGURED_ARCH).deb | ||
|
|
||
| $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% : | ||
| dpkg-buildpackage -us -uc -b | ||
| mv ../$(MAIN_TARGET) $(DEST)/ | ||
| rm ../$(BINARY)-* ../$(BINARY)_* | ||
|
|
||
| $(BINARY): systemd-sonic-generator.c | ||
| rm -f ./systemd-sonic-generator | ||
|
|
||
| $(CC) $(CFLAGS) -o $@ $^ | ||
|
|
||
| install: $(BINARY) | ||
| mkdir -p $(DESTDIR) | ||
| mkdir -p $(DESTDIR)/lib | ||
| mkdir -p $(DESTDIR)/lib/systemd | ||
| mkdir -p $(DESTDIR)/lib/systemd/system-generators | ||
| cp ./systemd-sonic-generator $(DESTDIR)/lib/systemd/system-generators |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| systemd-sonic-generator (1.0.0) UNRELEASED; urgency=medium | ||
| * Initial version | ||
| -- Lawrence Lee <t-lale@microsoft.com> Tue, 23 Jul 2019 16:00:00 -0800 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 11 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| Source: systemd-sonic-generator | ||
| Maintainer: Lawrence Lee <t-lale@microsoft.com> | ||
|
|
||
| Package: systemd-sonic-generator | ||
| Architecture: any | ||
| Description: Systemd generator for SONiC services |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| #!/usr/bin/make -f | ||
|
|
||
| DISTRIBUTION = $(shell sed -n "s/^VERSION_CODENAME=//p" /etc/os-release) | ||
| VERSION = 1.0.0 | ||
| PACKAGEVERSION = $(VERSION) | ||
|
|
||
| %: | ||
| dh $@ | ||
|
|
||
| override_dh_auto_clean: | ||
| override_dh_auto_test: | ||
| override_dh_auto_build: | ||
| override_dh_auto_install: | ||
| make systemd-sonic-generator | ||
| make install DESTDIR=debian/systemd-sonic-generator | ||
|
|
||
| override_dh_gencontrol: | ||
| dh_gencontrol -- -v$(PACKAGEVERSION) |
Uh oh!
There was an error while loading. Please reload this page.