-
-
Notifications
You must be signed in to change notification settings - Fork 468
package/majestic-af: build the out-of-core autofocus plugin from source #2357
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
cad7131
package/majestic-af: build the out-of-core autofocus plugin from source
widgetii 34628d6
ci-matrix: majestic-af is selected by the builder device, not a firmw…
widgetii ed5acd2
hi3516ev300_lite: select majestic-af so CI builds it
widgetii 0c616ee
majestic-af: pin a full SHA instead of HEAD
widgetii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| config BR2_PACKAGE_MAJESTIC_AF | ||
| bool "majestic-af" | ||
| depends on BR2_PACKAGE_MAJESTIC | ||
|
widgetii marked this conversation as resolved.
|
||
| help | ||
| Out-of-core autofocus / PTZ engine plugin for majestic, compiled | ||
| from source. majestic loads /usr/lib/majestic-af.so at runtime when | ||
| autofocus is enabled and the majestic binary exports the plugin HAL | ||
| seams; the contrast search, the motorized-lens UART actuator (XiongMai | ||
| near-Pelco and standard Pelco-D), and the worker threads live here. | ||
|
|
||
| https://github.com/OpenIPC/majestic-af | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| ################################################################################ | ||
| # | ||
| # majestic-af | ||
| # | ||
| ################################################################################ | ||
|
|
||
| MAJESTIC_AF_SITE = $(call github,openipc,majestic-af,$(MAJESTIC_AF_VERSION)) | ||
| MAJESTIC_AF_VERSION = 7caebdc6289347a04cadbf48894600858f45ae69 | ||
|
|
||
| MAJESTIC_AF_LICENSE = MIT | ||
| MAJESTIC_AF_LICENSE_FILES = LICENSE | ||
|
|
||
| # Out-of-core autofocus / PTZ engine for majestic: one shared object majestic | ||
| # dlopen()s at runtime. The HAL seams it calls (sdk_get_focus_value, ...) are | ||
| # left UNDEFINED here and resolve against the majestic executable at dlopen, so | ||
| # this links nothing from majestic — only its own vendored headers. majestic must | ||
| # be built with plugin-symbol export (WITH_PLUGINS_SUPPORT) for those to resolve; | ||
| # the plugin otherwise fails to load and majestic keeps working without it. | ||
| define MAJESTIC_AF_BUILD_CMDS | ||
| $(TARGET_CC) $(TARGET_CFLAGS) -std=gnu99 -fPIC -shared \ | ||
| -DFILE_BASENAME=\"majestic-af\" \ | ||
| -I$(@D)/include \ | ||
| $(@D)/src/plugin.c $(@D)/src/engine.c $(@D)/src/af2.c \ | ||
| -o $(@D)/majestic-af.so | ||
| endef | ||
|
|
||
| define MAJESTIC_AF_INSTALL_TARGET_CMDS | ||
| $(INSTALL) -m 0644 -D $(@D)/majestic-af.so $(TARGET_DIR)/usr/lib/majestic-af.so | ||
|
widgetii marked this conversation as resolved.
|
||
| endef | ||
|
|
||
| $(eval $(generic-package)) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.